From 14435f8f55c9c3eadb17ccac59c3f432799350bb Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 12 Aug 2015 01:19:30 -0700 Subject: [PATCH] relay: run getLocalUser BEFORE quitting the user (in removeChannel) This prevents KeyErrors from showing up on DELINK. --- plugins/relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index 35c2996..d1fc9b5 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -718,9 +718,9 @@ def removeChannel(irc, channel): irc.proto.partClient(irc, user, channel, 'Channel delinked.') # Don't ever quit it either... if user != irc.pseudoclient.uid and not irc.users[user].channels: - irc.proto.quitClient(irc, user, 'Left all shared channels.') remoteuser = getLocalUser(irc, user) del relayusers[remoteuser][irc.name] + irc.proto.quitClient(irc, user, 'Left all shared channels.') @utils.add_cmd def create(irc, source, args):