aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-18 11:56:51 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-18 11:56:51 +0200
commitdc6005d43ab9df2eba337d5419cb40267b098c24 (patch)
treeaf6ada36f15304cdc3d9d590dea0b2a1ccb1caf4
parent9c9421a71ade84ceceeecd1e819f8b7d22f5b437 (diff)
Reformatted com_checkTIMESEAL()
-rw-r--r--FICS/adminproc.c34
1 files changed, 18 insertions, 16 deletions
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