mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Removed rate limiting during testing.
This commit is contained in:
parent
670669fe68
commit
737f35c99d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user