Made throttling properly respect world.testing.

This commit is contained in:
Jeremy Fincher 2003-08-11 05:07:07 +00:00
parent 1bbcfa9a5e
commit 5f7656c781

View File

@ -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