Changed to make sure every SocketDriver times out in a conf.poll length.

This commit is contained in:
Jeremy Fincher 2003-09-01 08:11:24 +00:00
parent 5313428ca7
commit 38d1896da3

View File

@ -44,8 +44,14 @@ import drivers
import ircmsgs import ircmsgs
import schedule import schedule
instances = 0
originalPoll = conf.poll
class SocketDriver(drivers.IrcDriver): class SocketDriver(drivers.IrcDriver):
def __init__(self, (server, port), irc): def __init__(self, (server, port), irc):
global instances
instances += 1
conf.poll = originalPoll / instances
drivers.IrcDriver.__init__(self) drivers.IrcDriver.__init__(self)
self.server = (server, port) self.server = (server, port)
self.irc = irc self.irc = irc