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; }