From: z411 Date: Thu, 15 Oct 2020 05:56:19 +0000 (-0300) Subject: Chat event fix X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8249cbce571031880c8ecf391b880f43f251c8fa;p=xonotic%2Fxonotic-data.pk3dir.git Chat event fix --- 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)); } }