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:
parent
4621c1c729
commit
e7df77bc8c
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user