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

View File

@ -2,6 +2,7 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50)
------------------------------------------------------- -------------------------------------------------------
== 09/20/2014 == == 09/20/2014 ==
demonstar55: Fix crash in SendEnterWorld on illegally long names demonstar55: Fix crash in SendEnterWorld on illegally long names
demonstar55: The client only lets you enter 15 characters for your name (UF at least)
== 09/19/2014 == == 09/19/2014 ==
demonstar55: Added Client::Tell_StringID (used in tell queue messages) demonstar55: Added Client::Tell_StringID (used in tell queue messages)

View File

@ -1140,7 +1140,7 @@ bool Database::CheckNameFilter(const char* name, bool surname)
else else
{ {
// the minimum 4 is enforced by the client too // 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; return false;
} }