From: Mario Date: Sun, 4 Dec 2016 02:15:29 +0000 (+1000) Subject: For consistency, still handle the private messages X-Git-Tag: xonotic-v0.8.2~394 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=50c05b68b7e6ef25157361e47dbff4f9b2df59a0;p=xonotic%2Fxonotic-data.pk3dir.git For consistency, still handle the private messages --- diff --git a/qcsrc/server/player.qc b/qcsrc/server/player.qc index 0ebd0e087..fea4b125a 100644 --- a/qcsrc/server/player.qc +++ b/qcsrc/server/player.qc @@ -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); }