Minor Improvement Fix

If blennies goes to true at any point exit the loop. No need to keep checking we found a Lenny.
This commit is contained in:
Metroid_Skittles 2023-02-10 21:17:21 +00:00
parent 4621c1c729
commit e7df77bc8c

View File

@ -159,7 +159,7 @@ public Action CCC_OnChatMessage(int client, int author, const char[] message)
int index = FindCharInString(message, '!', false); int index = FindCharInString(message, '!', false);
bool blennies = 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) if(g_bHideLennies[client] && StrContains(message, g_cLennies[i], false) != -1)
{ {