From 24b5fd92efbdc75cd0696ea4a2f05c70e7e73969 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 7 May 2017 13:58:11 -0700 Subject: [PATCH] relay: don't error if the pylink service is gone (e.g. during shutdown) --- plugins/relay.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index 688d546..704dc20 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -483,7 +483,8 @@ def initialize_channel(irc, channel): log.debug('(%s) relay.initialize_channel: joining our (%s) users: %s', irc.name, remotenet, irc.channels[channel].users) relay_joins(irc, channel, irc.channels[channel].users, irc.channels[channel].ts) - world.services['pylink'].join(irc, channel) + if 'pylink' in world.services: + world.services['pylink'].join(irc, channel) def remove_channel(irc, channel): """Destroys a relay channel by parting all of its users."""