diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-01-03 23:20:25 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-01-03 23:20:25 +0100 |
commit | c1c3fc9220831fafd805cd9f7aa7ec65d08a8e4a (patch) | |
tree | 20f41664ab0a6b3e67a78dcde09c2aa6f8971e5b /FICS/comproc.c | |
parent | 4ad609603226b2d934a59e37ea7fc10be6884344 (diff) |
Reformatted com_quit()
Diffstat (limited to 'FICS/comproc.c')
-rw-r--r-- | FICS/comproc.c | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c index bdbfb56..80ff236 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -238,18 +238,21 @@ com_news(int p, param_list param) return COM_OK; } -PUBLIC int com_quit(int p, param_list param) +PUBLIC int +com_quit(int p, param_list param) { - if ((parray[p].game >= 0) && (garray[parray[p].game].status == GAME_EXAMINE)) { - pcommand(p, "unexamine"); - } - - if (parray[p].game >= 0) { - pprintf(p, "You can't quit while you are playing a game.\nType 'resign' to resign the game, or you can request an abort with 'abort'.\n"); - return COM_OK; - } - psend_logoutfile(p, mess_dir, MESS_LOGOUT); - return COM_LOGOUT; + if (parray[p].game >= 0 && garray[parray[p].game].status == + GAME_EXAMINE) + pcommand(p, "unexamine"); + if (parray[p].game >= 0) { + pprintf(p, "You can't quit while you are playing a game.\n" + "Type 'resign' to resign the game, or you can request an " + "abort with 'abort'.\n"); + return COM_OK; + } + + psend_logoutfile(p, mess_dir, MESS_LOGOUT); + return COM_LOGOUT; } PUBLIC int |