From dc6005d43ab9df2eba337d5419cb40267b098c24 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 18 May 2024 11:56:51 +0200 Subject: Reformatted com_checkTIMESEAL() --- FICS/adminproc.c | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'FICS') diff --git a/FICS/adminproc.c b/FICS/adminproc.c index 0c16167..e4325bb 100644 --- a/FICS/adminproc.c +++ b/FICS/adminproc.c @@ -546,29 +546,31 @@ PUBLIC int com_checkPLAYER(int p, param_list param) * * This command displays all current users who are using timeseal. */ -PUBLIC int com_checkTIMESEAL(int p, param_list param) +PUBLIC int +com_checkTIMESEAL(int p, param_list param) { - int p1, count = 0; + int p1, count = 0; - /* XXX: maybe unused */ - (void) p1; - (void) count; + /* XXX: maybe unused */ + (void) p1; + (void) count; - ASSERT(parray[p].adminLevel >= ADMIN_ADMIN); - pprintf(p, "The following player(s) are using timeseal:\n\n"); + ASSERT(parray[p].adminLevel >= ADMIN_ADMIN); + + pprintf(p, "The following player(s) are using timeseal:\n\n"); #ifdef TIMESEAL - for (p1 = 0; p1 < p_num; p1++) { - if (parray[p1].status != PLAYER_EMPTY - && con[parray[p1].socket].timeseal) { - pprintf(p, "%s\n", parray[p1].name); - count++; - } - } - pprintf(p, "\nNumber of people using timeseal: %d\n", count); + for (p1 = 0; p1 < p_num; p1++) { + if (parray[p1].status != PLAYER_EMPTY && + con[parray[p1].socket].timeseal) { + pprintf(p, "%s\n", parray[p1].name); + count++; + } + } + pprintf(p, "\nNumber of people using timeseal: %d\n", count); #endif - return COM_OK; + return COM_OK; } PUBLIC int -- cgit v1.2.3