From 627fc6344bafec5bd46ab3cfd375c01b0829f5ec Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 5 Apr 2017 12:38:21 +1000 Subject: [PATCH] Add number support to usernames --- users.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users.c b/users.c index a267ca7..de1a538 100644 --- a/users.c +++ b/users.c @@ -444,7 +444,7 @@ struct user_record *new_user() { } for (i=0;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)); nameok = 1; break;