Removed rate limiting during testing.

This commit is contained in:
Jeremy Fincher 2003-04-29 13:13:55 +00:00
parent 670669fe68
commit 737f35c99d

View File

@ -108,11 +108,11 @@ class RateLimiter:
return None
def put(self, msg):
if not self.limit(msg):
self.unlimited.append(msg)
else:
if self.limit(msg) and not world.testing:
debug.printf('Limiting message from %s' % msg.prefix)
self.limited.append(msg)
else:
self.unlimited.append(msg)
def limit(self, msg, penalize=True):
if msg.prefix and ircutils.isUserHostmask(msg.prefix):