From dc7edf542aed997309c7e29fb3168c7fbe1acc1d Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 23 Jul 2015 14:34:56 -0700 Subject: [PATCH] relay: fix error on handle_part if remote network has no link --- plugins/relay.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/relay.py b/plugins/relay.py index a0b7cc1..9932a17 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -295,6 +295,8 @@ def handle_part(irc, numeric, command, args): for netname, user in relayusers[(irc.name, numeric)].copy().items(): remoteirc = utils.networkobjects[netname] remotechan = findRemoteChan(irc, remoteirc, channel) + if remotechan is None: + continue remoteirc.proto.partClient(remoteirc, user, remotechan, text) if not remoteirc.users[user].channels: remoteirc.proto.quitClient(remoteirc, user, 'Left all shared channels.')