aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-01-03 23:20:25 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-01-03 23:20:25 +0100
commitc1c3fc9220831fafd805cd9f7aa7ec65d08a8e4a (patch)
tree20f41664ab0a6b3e67a78dcde09c2aa6f8971e5b /FICS
parent4ad609603226b2d934a59e37ea7fc10be6884344 (diff)
Reformatted com_quit()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/comproc.c25
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