From 8249cbce571031880c8ecf391b880f43f251c8fa Mon Sep 17 00:00:00 2001 From: z411 Date: Thu, 15 Oct 2020 02:56:19 -0300 Subject: [PATCH] Chat event fix --- qcsrc/server/client.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 18e51fcb8..2aaab0fb7 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -3191,7 +3191,7 @@ int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodc sprint(it, msgstr); }); - if(play_chatsound(source, msgin)) + if(!play_chatsound(source, msgin)) event_log_msg = sprintf(":chat_spec:%d:%s", source.playerid, strreplace("\n", " ", msgin)); } else @@ -3205,7 +3205,7 @@ int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodc sprint(it, msgstr); }); - if(play_chatsound(source, msgin)) + if(!play_chatsound(source, msgin)) event_log_msg = sprintf(":chat:%d:%s", source.playerid, strreplace("\n", " ", msgin)); } } -- 2.39.2