From 9649a5b8169e1f3f3df169e9307f919f03b77836 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 18 Dec 2023 21:05:11 +0100 Subject: Reformatted com_whenshut() --- FICS/shutdown.c | 12 +++++------- 1 file 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; } -- cgit v1.2.3