mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-25 18:00:39 +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)
|
log.debug('(%s) rehash: removing connection to %r (removed from config).', irc.name, network)
|
||||||
# Disable autoconnect first.
|
# Disable autoconnect first.
|
||||||
ircobj.serverdata['autoconnect'] = -1
|
ircobj.serverdata['autoconnect'] = -1
|
||||||
ircobj.aborted.set()
|
ircobj.disconnect()
|
||||||
del world.networkobjects[network]
|
del world.networkobjects[network]
|
||||||
else:
|
else:
|
||||||
ircobj.conf = new_conf
|
ircobj.conf = new_conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user