From e2a60790924048323d16fbdb27e7199455561f55 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Thu, 9 May 2024 12:26:36 +0200 Subject: Reformatted com_quota() --- FICS/adminproc.c | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'FICS') diff --git a/FICS/adminproc.c b/FICS/adminproc.c index 7f538a9..2691984 100644 --- a/FICS/adminproc.c +++ b/FICS/adminproc.c @@ -1743,18 +1743,23 @@ PUBLIC int com_admin(int p, param_list param) * affects only those persons on the shout quota list. If no parameter * (n) is given, the current setting is displayed. */ -PUBLIC int com_quota(int p, param_list param) +PUBLIC int +com_quota(int p, param_list param) { - ASSERT(parray[p].adminLevel >= ADMIN_ADMIN); - if (param[0].type == TYPE_NULL) { - pprintf(p, "The current shout quota is 2 shouts per %d seconds.\n", quota_time); - return COM_OK; - } - quota_time = param[0].val.integer; - pprintf(p, "The shout quota is now 2 shouts per %d seconds.\n", quota_time); - return COM_OK; -} + ASSERT(parray[p].adminLevel >= ADMIN_ADMIN); + if (param[0].type == TYPE_NULL) { + pprintf(p, "The current shout quota is 2 shouts per %d " + "seconds.\n", quota_time); + return COM_OK; + } + + quota_time = param[0].val.integer; + + pprintf(p, "The shout quota is now 2 shouts per %d seconds.\n", + quota_time); + return COM_OK; +} /* * asetmaxplayer -- cgit v1.2.3