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:
parent
0bb54d88e0
commit
ce3d3cf697
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user