NameFilter: Break expressions loop too.
Seems this one does the same. As the guard loop.
This commit is contained in:
parent
a352c51739
commit
86c53da79d
@ -290,6 +290,9 @@ bool FilterName(int client, char[] sName, int Length = MAX_NAME_LENGTH)
|
||||
{
|
||||
for(int i = 0; i < g_BannedExprs.Length; i++)
|
||||
{
|
||||
if (!strlen(sName))
|
||||
break;
|
||||
|
||||
Handle hRegex = g_BannedExprs.Get(i);
|
||||
int Match = MatchRegex(hRegex, sName, iError);
|
||||
if(iError != REGEX_ERROR_NONE)
|
||||
|
Loading…
Reference in New Issue
Block a user