summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 3a3c396f..c0e55bda 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -16,11 +16,12 @@ static const char * const chess_type[3] = {
#endif
int
-kill_user(int num, const char *userid)
+kill_user(int num, char *userid)
{
userec_t u;
char src[256], dst[256];
+ if(!userid || num<=0 ) return -1;
sethomepath(src, userid);
snprintf(dst, sizeof(dst), "tmp/%s", userid);
friend_delete_all(userid, FRIEND_ALOHA);