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:
msg = self.fastqueue.dequeue()
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')
else:
self.lastTake = now