Skip to content

Commit 0c6a980

Browse files
committed
If debug output print which filter filtered what
1 parent 5f926cb commit 0c6a980

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/game/client/components/chillerbot/chathelper.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,12 @@ bool CChatHelper::FilterChat(int ClientID, int Team, const char *pLine)
439439
if(aChatFilter[0] == '\0')
440440
continue;
441441
if(str_find_nocase(pLine, aChatFilter))
442+
{
443+
char aBuf[2048];
444+
str_format(aBuf, sizeof(aBuf), "filter '%s' filtered msg: %s", aChatFilter, pLine);
445+
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "chillerbot", aBuf);
442446
return true;
447+
}
443448
}
444449
int Spam = IsSpam(ClientID, Team, pLine);
445450
if(Spam)

0 commit comments

Comments
 (0)