3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

commands: In rehash, use irc.disconnect() to disconnect networks removed from conf

This commit is contained in:
James Lu 2016-01-23 13:18:19 -08:00
parent 14efb27fe8
commit 2503bd3ee5

View File

@ -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