From 86c53da79d8e13f304123d19fcab96423d4aff2b Mon Sep 17 00:00:00 2001 From: zaCade Date: Sat, 21 Jul 2018 17:54:15 +0200 Subject: [PATCH] NameFilter: Break expressions loop too. Seems this one does the same. As the guard loop. --- NameFilter/scripting/NameFilter.sp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NameFilter/scripting/NameFilter.sp b/NameFilter/scripting/NameFilter.sp index 23c42635..f3a78c23 100644 --- a/NameFilter/scripting/NameFilter.sp +++ b/NameFilter/scripting/NameFilter.sp @@ -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)