From c9526c86bfd8486661fb8464cbd0d26f83704908 Mon Sep 17 00:00:00 2001 From: TimePath Date: Thu, 31 Mar 2016 23:04:36 +1100 Subject: [PATCH] World chat != spectator chat --- qcsrc/server/cl_player.qc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index baa5e98df..ed6291cdb 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -857,8 +857,7 @@ int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodc sourcecmsgstr = cmsgstr; } - if(!privatesay) - if (!IS_PLAYER(source)) + if (!privatesay && source && !IS_PLAYER(source)) { if (!intermission_running) if(teamsay || (autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !(warmup_stage || gameover))) -- 2.39.2