From c33b9284a3f84d1d3a2e0980153b93d6a1617690 Mon Sep 17 00:00:00 2001 From: DoganGFL Date: Thu, 6 Dec 2018 19:33:32 +0100 Subject: [PATCH] fix rainbow lennies --- AntiLenny/scripting/AntiLenny.sp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/AntiLenny/scripting/AntiLenny.sp b/AntiLenny/scripting/AntiLenny.sp index 3480c289..da1cf88e 100644 --- a/AntiLenny/scripting/AntiLenny.sp +++ b/AntiLenny/scripting/AntiLenny.sp @@ -9,14 +9,14 @@ bool g_bHideLennies[MAXPLAYERS + 1] = { false, ... }; -char g_cLennies[20][] = {"( ͡° ͜ʖ ͡°)", "͜ʖ", "(° ͜ʖ °)", "( ͝͠°͜ل͝͠°)", "( ͡° ͜ ͡°)", "( ͡°╭͜ʖ╮͡° )", "( ͠° ͜ʖ ͡°)", "( ° ͜ʖ °)", "(╯°□°)╯", "_(ツ)_", "_ツ_", "( ̿°̿ ͜ل͜ ̿°̿ )", "( ͡", "( ͠", "( ͝", "( °", "(͡", "ಠ_ಠ", "͡°", "°͡"}; +char g_cLennies[23][] = {"( ͡° ͜ʖ ͡°)", "͜ʖ", "(° ͜ʖ °)", "( ͝͠°͜ل͝͠°)", "( ͡° ͜ ͡°)", "( ͡°╭͜ʖ╮͡° )", "( ͠° ͜ʖ ͡°)", "( ° ͜ʖ °)", "(╯°□°)╯", "_(ツ)_", "_ツ_", "( ̿°̿ ͜ل͜ ̿°̿ )", "( ͡", "( ͠", "( ͝", "( °", "(͡", "ಠ_ಠ", "͡°", "°͡", "ʖ", "͡", "͜"}; public Plugin myinfo = { name = "AntiLenny", author = "Dogan", description = "Makes it possible to selfmute Lennies", - version = "1.1.0", + version = "1.2.0", url = "" } @@ -27,14 +27,14 @@ public void OnPluginStart() public Action CCC_OnChatMessage(int client, int author, const char[] message) { - char buffer[192]; - strcopy(buffer, sizeof(buffer), message); + char lennies[192]; + strcopy(lennies, sizeof(lennies), message); - CRemoveTags(buffer, 192); + CRemoveTags(lennies, 192); - for(int i = 0; i < 20; i++) + for(int i = 0; i < 23; i++) { - if(g_bHideLennies[client] && StrContains(buffer, g_cLennies[i], false) != -1) + if(g_bHideLennies[client] && StrContains(lennies, g_cLennies[i], false) != -1) { return Plugin_Handled; }