[nexuiz-commits] r6556 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Apr 22 06:53:41 EDT 2009
Author: div0
Date: 2009-04-22 06:53:41 -0400 (Wed, 22 Apr 2009)
New Revision: 6556
Modified:
trunk/data/qcsrc/server/ipban.qc
Log:
add more messages to ipban system
Modified: trunk/data/qcsrc/server/ipban.qc
===================================================================
--- trunk/data/qcsrc/server/ipban.qc 2009-04-22 10:49:28 UTC (rev 6555)
+++ trunk/data/qcsrc/server/ipban.qc 2009-04-22 10:53:41 UTC (rev 6556)
@@ -439,8 +439,12 @@
}
// if we replace someone, will we be banned longer than him (so long-term
// bans never get overridden by short-term bans)
+ if(i < ban_count)
if(ban_expire[i] > time + bantime)
+ {
+ print(ip, " could not get banned due to no free ban slot\n");
return FALSE;
+ }
// okay, insert our new victim as i
Ban_Delete(i);
print(ip, " has been banned for ", ftos(bantime), " seconds\n");
More information about the nexuiz-commits
mailing list