NameFilter: Break expressions loop too.

Seems this one does the same. As the guard loop.
This commit is contained in:
zaCade 2018-07-21 17:54:15 +02:00
parent a352c51739
commit 86c53da79d

View File

@ -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)