aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-24 23:53:46 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-24 23:53:46 +0100
commit0ccdf9edb768df30cd11020be2851c0dbf6303fc (patch)
treeb43a3a21f2d196de378db29fd9a3b4b07f5472e1 /FICS
parent3c49998a5f58ba7dcc07a68ba0600990487d5f45 (diff)
Reformatted functions
Diffstat (limited to 'FICS')
-rw-r--r--FICS/playerdb.c37
1 files changed, 21 insertions, 16 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index f841cfa..317741c 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -2382,15 +2382,16 @@ PUBLIC int player_reincarn(char *name, char *newname)
return 0;
}
-PUBLIC int player_num_comments(int p)
+PUBLIC int
+player_num_comments(int p)
{
- char fname[MAX_FILENAME_SIZE];
+ char fname[MAX_FILENAME_SIZE];
- if (!parray[p].registered)
- return 0;
- sprintf(fname, "%s/player_data/%c/%s.%s", stats_dir, parray[p].login[0],
- parray[p].login, "comments");
- return lines_file(fname);
+ if (!parray[p].registered)
+ return 0;
+ sprintf(fname, "%s/player_data/%c/%s.%s", stats_dir, parray[p].login[0],
+ parray[p].login, "comments");
+ return lines_file(fname);
}
PUBLIC int
@@ -2415,18 +2416,22 @@ player_add_comment(int p_by, int p_to, char *comment)
return 0;
}
-PUBLIC int player_show_comments(int p, int p1)
+PUBLIC int
+player_show_comments(int p, int p1)
{
- char fname[MAX_FILENAME_SIZE];
+ char fname[MAX_FILENAME_SIZE];
- sprintf(fname, "%s/player_data/%c/%s.%s", stats_dir, parray[p1].login[0],
- parray[p1].login, "comments");
- psend_file(p, NULL, fname);
- return 0;
+ sprintf(fname, "%s/player_data/%c/%s.%s", stats_dir,
+ parray[p1].login[0], parray[p1].login, "comments");
+ psend_file(p, NULL, fname);
+ return 0;
}
-/* returns 1 if player is head admin, 0 otherwise */
-PUBLIC int player_ishead(int p)
+/*
+ * Returns 1 if player is head admin and 0 otherwise.
+ */
+PUBLIC int
+player_ishead(int p)
{
- return (!strcasecmp(parray[p].name, hadmin_handle));
+ return (!strcasecmp(parray[p].name, hadmin_handle));
}