From: TimePath Date: Thu, 31 Mar 2016 12:04:36 +0000 (+1100) Subject: World chat != spectator chat X-Git-Tag: xonotic-v0.8.2~977 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c9526c86bfd8486661fb8464cbd0d26f83704908;p=xonotic%2Fxonotic-data.pk3dir.git World chat != spectator chat --- 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)))