aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/comproc.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-01-03 03:03:02 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-01-03 03:03:02 +0100
commitdfb0a5f5bc1683ef382ce9720a799ef0b03f04dd (patch)
treedda1cb93eeaf8a9136e31944d9e3e7c3616b557b /FICS/comproc.c
parentdfd53aed6b660050d8f3f27ee961d348eb1d172f (diff)
Reformatted AddPlayerLists() and marked it private
Diffstat (limited to 'FICS/comproc.c')
-rw-r--r--FICS/comproc.c35
1 files changed, 18 insertions, 17 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c
index df09581..ecda9b3 100644
--- a/FICS/comproc.c
+++ b/FICS/comproc.c
@@ -702,24 +702,25 @@ PUBLIC int com_logons(int p, param_list param)
#define WHO_ALL 0xff
-void AddPlayerLists (int p1, char *ptmp)
+PRIVATE void
+AddPlayerLists(int p1, char *ptmp)
{
- if ((parray[p1].adminLevel >= 10) && (parray[p1].i_admin))
- strcat(ptmp, "(*)");
- if (in_list(p1, L_COMPUTER, parray[p1].name))
- strcat(ptmp, "(C)");
- if (in_list(p1, L_FM, parray[p1].name))
- strcat(ptmp, "(FM)");
- if (in_list(p1, L_IM, parray[p1].name))
- strcat(ptmp, "(IM)");
- if (in_list(p1, L_GM, parray[p1].name))
- strcat(ptmp, "(GM)");
- if (in_list(p1, L_TD, parray[p1].name))
- strcat(ptmp, "(TD)");
- if (in_list(p1, L_TEAMS, parray[p1].name))
- strcat(ptmp, "(T)");
- if (in_list(p1, L_BLIND, parray[p1].name))
- strcat(ptmp, "(B)");
+ if (parray[p1].adminLevel >= 10 && parray[p1].i_admin)
+ strcat(ptmp, "(*)");
+ if (in_list(p1, L_COMPUTER, parray[p1].name))
+ strcat(ptmp, "(C)");
+ if (in_list(p1, L_FM, parray[p1].name))
+ strcat(ptmp, "(FM)");
+ if (in_list(p1, L_IM, parray[p1].name))
+ strcat(ptmp, "(IM)");
+ if (in_list(p1, L_GM, parray[p1].name))
+ strcat(ptmp, "(GM)");
+ if (in_list(p1, L_TD, parray[p1].name))
+ strcat(ptmp, "(TD)");
+ if (in_list(p1, L_TEAMS, parray[p1].name))
+ strcat(ptmp, "(T)");
+ if (in_list(p1, L_BLIND, parray[p1].name))
+ strcat(ptmp, "(B)");
}
PRIVATE void who_terse(int p, int num, int *plist, int type)