Added "new" to reserved names

This commit is contained in:
Andrew Pamment 2016-04-03 16:42:14 +10:00
parent efede4c6c5
commit b7927773aa

View File

@ -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) {