From c8e40b483e2b98d5ad3479dfa9112174b665e651 Mon Sep 17 00:00:00 2001 From: Slava Bacherikov Date: Sat, 12 May 2018 20:46:45 +0300 Subject: [PATCH] Fix bug with PM (tell command) between spectators --- qcsrc/server/player.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.39.2