From 5381e85d3cf38b48ab1a6d79571b264ba6e15682 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 9 Aug 2017 16:06:37 -0700 Subject: [PATCH] IRCS2SProtocol: fix wrong if: statement regarding user presence --- protocols/ircs2s_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/ircs2s_common.py b/protocols/ircs2s_common.py index 84fdb98..86a434e 100644 --- a/protocols/ircs2s_common.py +++ b/protocols/ircs2s_common.py @@ -607,7 +607,7 @@ class IRCS2SProtocol(IRCCommonProtocol): channels = args[0].split(',') for channel in channels.copy(): - if source not in channel: + if channel not in self.channels or source not in self.channels[channel].users: # Ignore channels the user isn't on, and remove them from any hook payloads. channels.remove(channel)