diff options
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/shutdown.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/FICS/shutdown.c b/FICS/shutdown.c index da26e26..61cf79c 100644 --- a/FICS/shutdown.c +++ b/FICS/shutdown.c @@ -254,12 +254,10 @@ PUBLIC int server_shutdown(int secs, char *why) return 0; } -PUBLIC int com_whenshut(int p, param_list param) - +PUBLIC int +com_whenshut(int p, param_list param) { - int result = check_and_print_shutdown(p); - if (result == 0) { - pprintf (p,"No shutdown currently in progress\n"); - } - return COM_OK; + if (check_and_print_shutdown(p) == 0) + pprintf(p, "No shutdown currently in progress\n"); + return COM_OK; } |