Added two XXXes.

This commit is contained in:
Jeremy Fincher 2005-01-10 06:03:38 +00:00
parent eaf9f809ca
commit 5ee8f5d9ed
2 changed files with 6 additions and 2 deletions

View File

@ -49,7 +49,9 @@ import supybot.world as world
import supybot.drivers as drivers
import supybot.schedule as schedule
reconnectWaits = (0, 60, 300)
# XXX Shouldn't the reconnect wait (at least the last one) be configurable?
reconnectWaits = [0, 60, 300]
class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
def __init__(self, irc):
self.irc = irc

View File

@ -103,6 +103,7 @@ def errorMsg(reason):
return reason.getErrorMessage()
class SupyReconnectingFactory(ReconnectingClientFactory, drivers.ServersMixin):
# XXX Shouldn't the maxDelay be configurable?
maxDelay = 300
protocol = SupyIrcProtocol
def __init__(self, irc):
@ -129,7 +130,8 @@ class SupyReconnectingFactory(ReconnectingClientFactory, drivers.ServersMixin):
protocol = ReconnectingClientFactory.buildProtocol(self, addr)
protocol.irc = self.irc
return protocol
Driver = SupyReconnectingFactory
try: