Limit character length to 15 (the client doesn't let you enter more)

This commit is contained in:
Michael Cook (mackal)
2014-09-20 15:59:34 -04:00
parent f82699c39b
commit 33b79a3588
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1140,7 +1140,7 @@ bool Database::CheckNameFilter(const char* name, bool surname)
else
{
// the minimum 4 is enforced by the client too
if(!name || strlen(name) < 4 || strlen(name) > 64)
if(!name || strlen(name) < 4 || strlen(name) > 15)
{
return false;
}