changeset 4523:12ccfa96b1e4

web.utils: typo in parameter kick fixed
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 01 Feb 2009 20:28:11 +0100
parents a5ecf8f3303e
children 3e660579be91
files MoinMoin/web/utils.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/utils.py	Sun Feb 01 20:07:22 2009 +0100
+++ b/MoinMoin/web/utils.py	Sun Feb 01 20:28:11 2009 +0100
@@ -103,7 +103,7 @@
             events = surgedict.setdefault(current_id, {})
             timestamps = events.setdefault(current_action, [])
 
-            if kick_him: # ban this guy, NOW
+            if kick: # ban this guy, NOW
                 timestamps.extend([(now + request.cfg.surge_lockout_time, "!")] * (2 * maxnum))
 
             surge_detected = surge_detected or len(timestamps) > maxnum