aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/comproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/comproc.c')
-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