NameFilter: Break guard loop on name length zero.

Seems on CSGO, it sometimes keeps looping despite the name already being
non-existant.
This commit is contained in:
zaCade 2018-07-21 17:48:52 +02:00
parent fad99bc1f2
commit a352c51739

View File

@ -253,6 +253,9 @@ bool FilterName(int client, char[] sName, int Length = MAX_NAME_LENGTH)
int Guard;
for(Guard = 0; Guard < 100; Guard++)
{
if (!strlen(sName))
break;
int Match = MatchRegex(g_FilterExpr, sName, iError);
if(iError != REGEX_ERROR_NONE)
{