From e7df77bc8c11a452cd35ca361e865a6ee22a3728 Mon Sep 17 00:00:00 2001 From: Metroid_Skittles Date: Fri, 10 Feb 2023 21:17:21 +0000 Subject: [PATCH] Minor Improvement Fix If blennies goes to true at any point exit the loop. No need to keep checking we found a Lenny. --- ChatFilter/scripting/ChatFilter.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChatFilter/scripting/ChatFilter.sp b/ChatFilter/scripting/ChatFilter.sp index 915136bb..be45583a 100644 --- a/ChatFilter/scripting/ChatFilter.sp +++ b/ChatFilter/scripting/ChatFilter.sp @@ -159,7 +159,7 @@ public Action CCC_OnChatMessage(int client, int author, const char[] message) int index = FindCharInString(message, '!', false); bool blennies = false; - for(int i = 0; i < NUMBEROFLENNIES; i++) + for(int i = 0; i < NUMBEROFLENNIES && !blennies; i++) { if(g_bHideLennies[client] && StrContains(message, g_cLennies[i], false) != -1) {