3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

networks: remove networks with autoconnect off in 'disconnect'

Closes #162.
This commit is contained in:
James Lu 2016-03-05 09:42:51 -08:00
parent 8ac5436152
commit 5fed4629a6

View File

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