mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-01 07:04:06 +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.drivers as drivers
|
||||||
import supybot.schedule as schedule
|
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):
|
class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
||||||
def __init__(self, irc):
|
def __init__(self, irc):
|
||||||
self.irc = irc
|
self.irc = irc
|
||||||
|
@ -103,6 +103,7 @@ def errorMsg(reason):
|
|||||||
return reason.getErrorMessage()
|
return reason.getErrorMessage()
|
||||||
|
|
||||||
class SupyReconnectingFactory(ReconnectingClientFactory, drivers.ServersMixin):
|
class SupyReconnectingFactory(ReconnectingClientFactory, drivers.ServersMixin):
|
||||||
|
# XXX Shouldn't the maxDelay be configurable?
|
||||||
maxDelay = 300
|
maxDelay = 300
|
||||||
protocol = SupyIrcProtocol
|
protocol = SupyIrcProtocol
|
||||||
def __init__(self, irc):
|
def __init__(self, irc):
|
||||||
@ -130,6 +131,7 @@ class SupyReconnectingFactory(ReconnectingClientFactory, drivers.ServersMixin):
|
|||||||
protocol.irc = self.irc
|
protocol.irc = self.irc
|
||||||
return protocol
|
return protocol
|
||||||
|
|
||||||
|
|
||||||
Driver = SupyReconnectingFactory
|
Driver = SupyReconnectingFactory
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user