mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Made throttling properly respect world.testing.
This commit is contained in:
parent
1bbcfa9a5e
commit
5f7656c781
@ -400,7 +400,7 @@ class Irc(object):
|
|||||||
if self.fastqueue:
|
if self.fastqueue:
|
||||||
msg = self.fastqueue.dequeue()
|
msg = self.fastqueue.dequeue()
|
||||||
elif self.queue:
|
elif self.queue:
|
||||||
if now - self.lastTake <= conf.throttleTime:
|
if not world.testing and now - self.lastTake <= conf.throttleTime:
|
||||||
debug.msg('Irc.takeMsg throttling.', 'verbose')
|
debug.msg('Irc.takeMsg throttling.', 'verbose')
|
||||||
else:
|
else:
|
||||||
self.lastTake = now
|
self.lastTake = now
|
||||||
|
Loading…
Reference in New Issue
Block a user