mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-20 09:04:36 +01:00
Added two XXXes.
This commit is contained in:
parent
eaf9f809ca
commit
5ee8f5d9ed
@ -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
|
||||
|
@ -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):
|
||||
@ -130,6 +131,7 @@ class SupyReconnectingFactory(ReconnectingClientFactory, drivers.ServersMixin):
|
||||
protocol.irc = self.irc
|
||||
return protocol
|
||||
|
||||
|
||||
Driver = SupyReconnectingFactory
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user