aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
Diffstat (limited to 'FICS')
-rw-r--r--FICS/playerdb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index 688a5db..5a6e2e7 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -3105,9 +3105,10 @@ player_clear_messages(int p)
if (!parray[p].registered)
return -1;
+
GetMsgFile(p, fname, sizeof fname, __func__);
- unlink(fname);
- return 0;
+
+ return (unlink(fname) == 0 ? 0 : -1);
}
/*