Censor name changes for all teams

Because this is global event and is broadcasted to everybody
This commit is contained in:
Unnamed 2018-12-06 05:52:39 +00:00
parent 4283089ad0
commit fe59721377

View File

@ -118,7 +118,7 @@ DEFINE_HOOKED_METHOD(DispatchUserMessage, bool, void *this_, int type,
if (chat_filter_enable && data[0] == LOCAL_E->m_IDX &&
event == "#TF_Name_Change")
{
chat_stack::Say("." + clear, true);
chat_stack::Say("." + clear, false);
}
else if (chat_filter_enable && data[0] != LOCAL_E->m_IDX &&
event.find("TF_Chat") == 0)