mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
relay: check to make sure network is ready before handling spawnmain
This commit is contained in:
parent
0bb54d88e0
commit
ce3d3cf697
@ -1125,7 +1125,7 @@ def handle_away(irc, numeric, command, args):
|
||||
utils.add_hook(handle_away, 'AWAY')
|
||||
|
||||
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
|
||||
# it joins all the relay channels like it's supposed to.
|
||||
initializeAll(irc)
|
||||
|
Loading…
Reference in New Issue
Block a user