From 18fea3e3a0e6e0e9f9c29b64a7155994ae983f87 Mon Sep 17 00:00:00 2001 From: div0 Date: Thu, 17 Dec 2009 18:43:19 +0000 Subject: [PATCH] fix spam from anticheat git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8399 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/anticheat.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/qcsrc/server/anticheat.qc b/data/qcsrc/server/anticheat.qc index ab69eb03d..9d4a6d22f 100644 --- a/data/qcsrc/server/anticheat.qc +++ b/data/qcsrc/server/anticheat.qc @@ -153,6 +153,8 @@ void anticheat_prethink() 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_init() void anticheat_shutdown() { - anticheat_report(); } -- 2.39.2