[nexuiz-commits] r8399 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Dec 17 13:43:19 EST 2009


Author: div0
Date: 2009-12-17 13:43:19 -0500 (Thu, 17 Dec 2009)
New Revision: 8399

Modified:
   trunk/data/qcsrc/server/anticheat.qc
Log:
fix spam from anticheat


Modified: trunk/data/qcsrc/server/anticheat.qc
===================================================================
--- trunk/data/qcsrc/server/anticheat.qc	2009-12-17 14:05:29 UTC (rev 8398)
+++ trunk/data/qcsrc/server/anticheat.qc	2009-12-17 18:43:19 UTC (rev 8399)
@@ -153,6 +153,8 @@
 
 void anticheat_report()
 {
+	if(!cvar("sv_eventlog"))
+		return;
 	GameLogEcho(strcat(":anticheat:speedhack:", ftos(self.playerid), ":", ftos(MEAN_EVALUATE(anticheat_speedhack))));
 	GameLogEcho(strcat(":anticheat:div0_strafebot_old:", ftos(self.playerid), ":", ftos(MEAN_EVALUATE(anticheat_div0_strafebot_old))));
 	GameLogEcho(strcat(":anticheat:div0_strafebot_new:", ftos(self.playerid), ":", ftos(MEAN_EVALUATE(anticheat_div0_strafebot_new))));
@@ -171,5 +173,4 @@
 
 void anticheat_shutdown()
 {
-	anticheat_report();
 }



More information about the nexuiz-commits mailing list