]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
For consistency, still handle the private messages
authorMario <mario@smbclan.net>
Sun, 4 Dec 2016 02:15:29 +0000 (12:15 +1000)
committerMario <mario@smbclan.net>
Sun, 4 Dec 2016 02:20:20 +0000 (12:20 +1000)
qcsrc/server/player.qc

index 0ebd0e087e4bb370c14ca5720112f600e22c13f5..fea4b125abb0a6604fde98e6380efe6a32dcc2b3 100644 (file)
@@ -922,11 +922,11 @@ int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodc
                }
                else if(privatesay) // private message, between 2 people only
                {
+                       sprint(source, sourcemsgstr);
+                       if (!autocvar_g_chat_tellprivacy) { dedicated_print(msgstr); } // send to server console too if "tellprivacy" is disabled
                        if(!MUTATOR_CALLHOOK(ChatMessageTo, privatesay, source))
                        {
-                               sprint(source, sourcemsgstr);
                                sprint(privatesay, msgstr);
-                               if (!autocvar_g_chat_tellprivacy) { dedicated_print(msgstr); } // send to server console too if "tellprivacy" is disabled
                                if(cmsgstr != "")
                                        centerprint(privatesay, cmsgstr);
                        }