]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Possibly fix server console spam when IRC users chat
authorMario <zacjardine@y7mail.com>
Sun, 1 Feb 2015 12:39:45 +0000 (23:39 +1100)
committerMario <zacjardine@y7mail.com>
Sun, 1 Feb 2015 12:39:45 +0000 (23:39 +1100)
qcsrc/server/cl_player.qc

index 64eadf4a3b554ccdb53f82371cc17bfb1b343623..30af660f06a84b7e7f8e4bd4eaab382fb42e08e4 100644 (file)
@@ -968,9 +968,10 @@ void IRCSay(string sourcename, string msgin)
                if(IS_PLAYER(head))
                        continue;
 
-               if(head.netaddress)
-               if(head.netaddress != "")
-               if(head.netaddress != "null/botclient")
+               //if(head.netaddress)
+               //if(head.netaddress != "")
+               //if(head.netaddress != "null/botclient")
+               if(IS_REAL_CLIENT(head))
                        sprint(head, msgstr);
        }
 }