mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
networks: remove networks with autoconnect off in 'disconnect'
Closes #162.
This commit is contained in:
parent
8ac5436152
commit
5fed4629a6
@ -32,6 +32,9 @@ def disconnect(irc, source, args):
|
||||
# Abort the connection! Simple as that.
|
||||
network.disconnect()
|
||||
|
||||
if network.serverdata["autoconnect"] < 1: # Remove networks if autoconnect is disabled.
|
||||
del world.networkobjects[netname]
|
||||
|
||||
@utils.add_cmd
|
||||
def connect(irc, source, args):
|
||||
"""<network>
|
||||
|
Loading…
Reference in New Issue
Block a user