Add number support to usernames
This commit is contained in:
parent
3dad6c5080
commit
627fc6344b
2
users.c
2
users.c
@ -444,7 +444,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) && buffer[i] != 32) {
|
if (!(tolower(buffer[i]) >= 97 && tolower(buffer[i]) <= 122) && buffer[i] != 32 && !(buffer[i] >= '0' && buffer[i] <= '9')) {
|
||||||
s_printf(get_string(168));
|
s_printf(get_string(168));
|
||||||
nameok = 1;
|
nameok = 1;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user