aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-09 12:26:36 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-09 12:26:36 +0200
commite2a60790924048323d16fbdb27e7199455561f55 (patch)
tree3eb87bdb80bc075605158784862b6989ab8e1f98
parent0498cb6b9fbf9d58008f2f6c3e9e6d62e9f54878 (diff)
Reformatted com_quota()
-rw-r--r--FICS/adminproc.c25
1 files changed, 15 insertions, 10 deletions
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