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:
parent
fad99bc1f2
commit
a352c51739
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user