From ce3d3cf697278d571ccda4f043a3300405336e7e Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 25 Mar 2016 16:59:27 -0700 Subject: [PATCH] relay: check to make sure network is ready before handling spawnmain --- plugins/relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index f7a595c..0229bf3 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -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)