]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Change client checks
authorMattia Basaglia <mattia.basaglia@gmail.com>
Tue, 24 Mar 2015 09:44:37 +0000 (10:44 +0100)
committerMattia Basaglia <mattia.basaglia@gmail.com>
Tue, 24 Mar 2015 09:44:37 +0000 (10:44 +0100)
qcsrc/server/cl_player.qc

index 84e91009ccde99962f6af3bc0393501bc20108f1..2ffb374ebe81a0b5487b6bbb178aa1e6e243e29e 100644 (file)
@@ -945,14 +945,14 @@ void IRCSay(string msgstr)
        msgstr = strcat("\{1}", strreplace("\n", " ", msgstr), "\n"); // newlines only are good for centerprint
 
        entity head;
-       FOR_EACH_REALCLIENT(head)
+       FOR_EACH_CLIENTSLOT(head)
        {
                if(!intermission_running)
                if((autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !(warmup_stage || gameover)))
                if(IS_PLAYER(head))
                        continue;
-               
-               sprint(head, msgstr);
+               if(IS_REAL_CLIENT(head))
+                    sprint(head, msgstr);
        }
 }