mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-23 09:00:46 +01:00
Make sure we're not trying to reply on the irc we just disconnected
This commit is contained in:
parent
ae48b426b4
commit
a6a45f9dc3
@ -109,6 +109,7 @@ class Network(callbacks.Privmsg):
|
|||||||
otherIrc.queueMsg(ircmsgs.quit(quitMsg))
|
otherIrc.queueMsg(ircmsgs.quit(quitMsg))
|
||||||
otherIrc.die()
|
otherIrc.die()
|
||||||
conf.supybot.networks().discard(otherIrc.network)
|
conf.supybot.networks().discard(otherIrc.network)
|
||||||
|
if otherIrc != irc:
|
||||||
irc.replySuccess('Disconnection to %s initiated.' % otherIrc.network)
|
irc.replySuccess('Disconnection to %s initiated.' % otherIrc.network)
|
||||||
disconnect = wrap(disconnect, ['owner', 'networkIrc', additional('text')])
|
disconnect = wrap(disconnect, ['owner', 'networkIrc', additional('text')])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user