Make sure we're not trying to reply on the irc we just disconnected

This commit is contained in:
James Vega 2004-12-30 21:59:48 +00:00
parent ae48b426b4
commit a6a45f9dc3

View File

@ -109,6 +109,7 @@ class Network(callbacks.Privmsg):
otherIrc.queueMsg(ircmsgs.quit(quitMsg))
otherIrc.die()
conf.supybot.networks().discard(otherIrc.network)
if otherIrc != irc:
irc.replySuccess('Disconnection to %s initiated.' % otherIrc.network)
disconnect = wrap(disconnect, ['owner', 'networkIrc', additional('text')])