summaryrefslogtreecommitdiff
path: root/src/users.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.c')
-rw-r--r--src/users.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/users.c b/src/users.c
index abf4b4b29..6c6d59c02 100644
--- a/src/users.c
+++ b/src/users.c
@@ -98,6 +98,7 @@ static User *new_user(const char *nick)
alog("user: New maximum user count: %d", maxusercnt);
}
user->isSuperAdmin = 0; /* always set SuperAdmin to 0 for new users */
+ user->nickTrack = NULL; /* ensure no default tracking nick */
return user;
}
@@ -424,6 +425,9 @@ void delete_user(User * user)
ci = ci2;
}
+ if (user->nickTrack)
+ free(user->nickTrack);
+
moduleCleanStruct(user->moduleData);
if (debug >= 2)