From a6a45f9dc3baee08143eecc598cc8e27f2992248 Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 30 Dec 2004 21:59:48 +0000 Subject: [PATCH] Make sure we're not trying to reply on the irc we just disconnected --- plugins/Network.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Network.py b/plugins/Network.py index a7a360808..f786a3a3a 100644 --- a/plugins/Network.py +++ b/plugins/Network.py @@ -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):