From: Slava Bacherikov Date: Sat, 12 May 2018 17:46:45 +0000 (+0300) Subject: Fix bug with PM (tell command) between spectators X-Git-Tag: xonotic-v0.8.5~2143^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F557%2Fhead;p=xonotic%2Fxonotic-data.pk3dir.git Fix bug with PM (tell command) between spectators --- diff --git a/qcsrc/server/player.qc b/qcsrc/server/player.qc index 06bdb1428..2fcd30163 100644 --- a/qcsrc/server/player.qc +++ b/qcsrc/server/player.qc @@ -969,7 +969,7 @@ int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodc if (privatesay && source && !IS_PLAYER(source)) { if (!game_stopped) - if ((privatesay && !IS_PLAYER(privatesay)) || (autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !warmup_stage)) + if ((privatesay && IS_PLAYER(privatesay)) && ((autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !warmup_stage))) ret = -1; // just hide the message completely }