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 0ebd0e0..fea4b12 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);
                        }