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

relay: check to make sure network is ready before handling spawnmain

This commit is contained in:
James Lu 2016-03-25 16:59:27 -07:00
parent 0bb54d88e0
commit ce3d3cf697

View File

@ -1125,7 +1125,7 @@ def handle_away(irc, numeric, command, args):
utils.add_hook(handle_away, 'AWAY') utils.add_hook(handle_away, 'AWAY')
def handle_spawnmain(irc, numeric, command, args): def handle_spawnmain(irc, numeric, command, args):
if args['olduser']: if args['olduser'] and irc.connected.is_set():
# Kills to the main PyLink client force reinitialization; this makes sure # Kills to the main PyLink client force reinitialization; this makes sure
# it joins all the relay channels like it's supposed to. # it joins all the relay channels like it's supposed to.
initializeAll(irc) initializeAll(irc)