diff --git a/NameFilter/scripting/NameFilter.sp b/NameFilter/scripting/NameFilter.sp index edd7af57..23c42635 100644 --- a/NameFilter/scripting/NameFilter.sp +++ b/NameFilter/scripting/NameFilter.sp @@ -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) {