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:
parent
14efb27fe8
commit
2503bd3ee5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user