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,7 +109,8 @@ class Network(callbacks.Privmsg):
otherIrc.queueMsg(ircmsgs.quit(quitMsg))
otherIrc.die()
conf.supybot.networks().discard(otherIrc.network)
irc.replySuccess('Disconnection to %s initiated.' % otherIrc.network)
if otherIrc != irc:
irc.replySuccess('Disconnection to %s initiated.' % otherIrc.network)
disconnect = wrap(disconnect, ['owner', 'networkIrc', additional('text')])
def reconnect(self, irc, msg, args, otherIrc, quitMsg):