Allow Spaces in usernames

This commit is contained in:
Andrew Pamment 2016-11-30 10:38:09 +10:00
parent 6ea840e58c
commit e9b84728f8

View File

@ -431,7 +431,7 @@ struct user_record *new_user() {
} }
for (i=0;i<strlen(buffer);i++) { for (i=0;i<strlen(buffer);i++) {
if (!(tolower(buffer[i]) >= 97 && tolower(buffer[i]) <= 122)) { if (!(tolower(buffer[i]) >= 97 && tolower(buffer[i]) <= 122) && buffer[i] != 32) {
s_printf(get_string(168)); s_printf(get_string(168));
nameok = 1; nameok = 1;
break; break;