aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/shutdown.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-18 21:05:11 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-18 21:05:11 +0100
commit9649a5b8169e1f3f3df169e9307f919f03b77836 (patch)
treef50caedfcec110968bbcc370daae20b13f586bc3 /FICS/shutdown.c
parent09eba0a40ec63579c45144ef401563741464b396 (diff)
Reformatted com_whenshut()
Diffstat (limited to 'FICS/shutdown.c')
-rw-r--r--FICS/shutdown.c12
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;
}