mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Try to handle disconnects.
This commit is contained in:
parent
c73ca6941b
commit
29c9fe96cd
@ -525,6 +525,14 @@ class Relay(callbacks.Privmsg):
|
||||
m = ircmsgs.privmsg(channel, s)
|
||||
self._sendToOthers(irc, m)
|
||||
|
||||
def doError(self, irc, msg):
|
||||
irc = self._getRealIrc(irc)
|
||||
network = self._getIrcName(irc)
|
||||
s = 'disconnected from %s (%s)' % (network, msg.args[0])
|
||||
for channel in self.registryValue('channels'):
|
||||
m = ircmsgs.privmsg(channel, s)
|
||||
self._sendToOthers(irc, m)
|
||||
|
||||
def outFilter(self, irc, msg):
|
||||
irc = self._getRealIrc(irc)
|
||||
if msg.command == 'PRIVMSG':
|
||||
|
Loading…
Reference in New Issue
Block a user