]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Chat event fix
authorz411 <z411@omaera.org>
Thu, 15 Oct 2020 05:56:19 +0000 (02:56 -0300)
committerz411 <z411@omaera.org>
Thu, 15 Oct 2020 05:56:19 +0000 (02:56 -0300)
qcsrc/server/client.qc

index 18e51fcb89c88ba6edd6a72119eff2c97d6ecefe..2aaab0fb750f81e26a0509b1aeac6528436cc9a5 100644 (file)
@@ -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));
                }
        }