Added "new" to reserved names
This commit is contained in:
parent
efede4c6c5
commit
b7927773aa
4
users.c
4
users.c
@ -385,6 +385,10 @@ struct user_record *new_user(int socket) {
|
||||
s_putstring(socket, "Sorry, that name is reserved.\r\n");
|
||||
continue;
|
||||
}
|
||||
if (strcasecmp(buffer, "new") == 0) {
|
||||
s_putstring(socket, "Sorry, that name is reserved.\r\n");
|
||||
continue;
|
||||
}
|
||||
user->loginname = strdup(buffer);
|
||||
nameok = check_user(user->loginname);
|
||||
if (!nameok) {
|
||||
|
Reference in New Issue
Block a user