From 4621c1c72998743b95cbe19f785a74e70cbab99e Mon Sep 17 00:00:00 2001 From: Metroid_Skittles Date: Fri, 10 Feb 2023 20:07:45 +0000 Subject: [PATCH] Lenny Filter Improvement Improved Lenny Filter to capture more Lennies. Very unlikely these 4 characters will appear in normal text. But are used in a variety of Lenny. Saves us from having to loop 25 times and adapts to various lenny. --- ChatFilter/scripting/ChatFilter.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ChatFilter/scripting/ChatFilter.sp b/ChatFilter/scripting/ChatFilter.sp index 49427d2..915136b 100644 --- a/ChatFilter/scripting/ChatFilter.sp +++ b/ChatFilter/scripting/ChatFilter.sp @@ -16,9 +16,9 @@ Handle g_hCookieBlockCommands = null; bool g_bBlockChat[MAXPLAYERS + 1] = { false, ...}; Handle g_hCookieBlockChat = null; -#define NUMBEROFLENNIES 25 +#define NUMBEROFLENNIES 4 -char g_cLennies[NUMBEROFLENNIES][] = {"( ͡° ͜ʖ ͡°)", "͜ʖ", "(° ͜ʖ °)", "( ͝͠°͜ل͝͠°)", "( ͡° ͜ ͡°)", "( ͡°╭͜ʖ╮͡° )", "( ͠° ͜ʖ ͡°)", "( ° ͜ʖ °)", "(╯°□°)╯", "_(ツ)_", "_ツ_", "( ̿°̿ ͜ل͜ ̿°̿ )", "( ͡", "( ͠", "( ͝", "( °", "(͡", "ಠ_ಠ", "͡°", "°͡", "ʖ", "͡", "͜", "っ", (ง⚆ᨓ⚆)ง}; +char g_cLennies[NUMBEROFLENNIES][] = {"°","ಠ","⚆","ʖ"}; //---------------------------------------------------------------------------------------------------- // Purpose: