From 2503bd3ee5e512a5f6bfbd5ffe64edabcb64c278 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 23 Jan 2016 13:18:19 -0800 Subject: [PATCH] commands: In rehash, use irc.disconnect() to disconnect networks removed from conf --- plugins/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/commands.py b/plugins/commands.py index c79134a..6243914 100644 --- a/plugins/commands.py +++ b/plugins/commands.py @@ -191,7 +191,7 @@ def rehash(irc, source, args): log.debug('(%s) rehash: removing connection to %r (removed from config).', irc.name, network) # Disable autoconnect first. ircobj.serverdata['autoconnect'] = -1 - ircobj.aborted.set() + ircobj.disconnect() del world.networkobjects[network] else: ircobj.conf = new_conf