aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/comproc.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-01-01 21:20:33 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-01-01 21:20:33 +0100
commitba9530fd78873c08d4d90b51cc8d76fa812a4c03 (patch)
treea178588a49db5345898414adab738ee89f487c3b /FICS/comproc.c
parent143034db84a92e147f727639e7ee6c34c7413c7f (diff)
Reformatted com_limits()
Diffstat (limited to 'FICS/comproc.c')
-rw-r--r--FICS/comproc.c55
1 files changed, 34 insertions, 21 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c
index 32f8662..2202d3f 100644
--- a/FICS/comproc.c
+++ b/FICS/comproc.c
@@ -1750,26 +1750,39 @@ PUBLIC int com_getps(int p, param_list param)
pprintf(p, "*status %s 0 %s*\n", parray[p1].name, parray[(parray[p1].opponent)].name);
return COM_OK;
}
-PUBLIC int com_limits(int p, param_list param)
+
+PUBLIC int
+com_limits(int p, param_list param)
{
- pprintf(p, "\nCurrent hardcoded limits:\n");
- pprintf(p, " Max number of players: %d\n", MAX_PLAYER);
- pprintf(p, " Max number of channels and max capacity: %d\n", MAX_CHANNELS);
- pprintf(p, " Max number of channels one can be in: %d\n", MAX_INCHANNELS);
- pprintf(p, " Max number of people on the notify list: %d\n", MAX_NOTIFY);
- pprintf(p, " Max number of aliases: %d\n", MAX_ALIASES - 1);
- pprintf(p, " Max number of games you can observe at a time: %d\n", MAX_OBSERVE);
- pprintf(p, " Max number of requests pending: %d\n", MAX_PENDING);
- pprintf(p, " Max number of people on the censor list: %d\n", MAX_CENSOR);
- pprintf(p, " Max number of people in a simul game: %d\n", MAX_SIMUL);
- pprintf(p, " Max number of messages one can receive: %d\n", MAX_MESSAGES);
- pprintf(p, " Min number of games to be active: %d\n", PROVISIONAL);
- if ((parray[p].adminLevel < ADMIN_ADMIN) && (!titled_player(p,parray[p].login))) {
- pprintf(p, " Size of journal (entries): %d\n", MAX_JOURNAL);
- } else {
- pprintf(p, " Size of journal (entries): 26\n");
- }
- pprintf(p, "\nAdmin settable limits:\n");
- pprintf(p, " Shout quota gives two shouts per %d seconds.\n", quota_time);
- return COM_OK;
+ pprintf(p, "\nCurrent hardcoded limits:\n");
+ pprintf(p, " Max number of players: %d\n", MAX_PLAYER);
+ pprintf(p, " Max number of channels and max capacity: %d\n",
+ MAX_CHANNELS);
+ pprintf(p, " Max number of channels one can be in: %d\n",
+ MAX_INCHANNELS);
+ pprintf(p, " Max number of people on the notify list: %d\n",
+ MAX_NOTIFY);
+ pprintf(p, " Max number of aliases: %d\n", (MAX_ALIASES - 1));
+ pprintf(p, " Max number of games you can observe at a time: %d\n",
+ MAX_OBSERVE);
+ pprintf(p, " Max number of requests pending: %d\n", MAX_PENDING);
+ pprintf(p, " Max number of people on the censor list: %d\n",
+ MAX_CENSOR);
+ pprintf(p, " Max number of people in a simul game: %d\n", MAX_SIMUL);
+ pprintf(p, " Max number of messages one can receive: %d\n",
+ MAX_MESSAGES);
+ pprintf(p, " Min number of games to be active: %d\n", PROVISIONAL);
+
+ if (parray[p].adminLevel < ADMIN_ADMIN &&
+ !titled_player(p,parray[p].login)) {
+ pprintf(p, " Size of journal (entries): %d\n", MAX_JOURNAL);
+ } else {
+ pprintf(p, " Size of journal (entries): 26\n");
+ }
+
+ pprintf(p, "\nAdmin settable limits:\n");
+ pprintf(p, " Shout quota gives two shouts per %d seconds.\n",
+ quota_time);
+
+ return COM_OK;
}