From 5f926cb28a301a640f4d46c885fc6feeb261e7c6 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Fri, 29 Dec 2023 21:15:30 +0100 Subject: [PATCH] Make chat filter case insensitive --- src/game/client/components/chillerbot/chathelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/chillerbot/chathelper.cpp b/src/game/client/components/chillerbot/chathelper.cpp index 7c6548cae87..c1ddf5886e5 100644 --- a/src/game/client/components/chillerbot/chathelper.cpp +++ b/src/game/client/components/chillerbot/chathelper.cpp @@ -438,7 +438,7 @@ bool CChatHelper::FilterChat(int ClientID, int Team, const char *pLine) { if(aChatFilter[0] == '\0') continue; - if(str_find(pLine, aChatFilter)) + if(str_find_nocase(pLine, aChatFilter)) return true; } int Spam = IsSpam(ClientID, Team, pLine);