Accepts underscore and dash as valid characteres for user name
This commit is contained in:
parent
f283a3391c
commit
a52be608a2
@ -576,7 +576,7 @@ namespace CoopServer
|
||||
local.Deny("Username is empty or contains spaces!");
|
||||
return;
|
||||
}
|
||||
if (packet.Username.Any(p => !char.IsLetterOrDigit(p)))
|
||||
if (packet.Username.Any(p => !char.IsLetterOrDigit(p) && !(p == '_') && !(p=='-')))
|
||||
{
|
||||
local.Deny("Username contains special chars!");
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user