3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +01:00

IRCS2SProtocol: fix wrong if: statement regarding user presence

This commit is contained in:
James Lu 2017-08-09 16:06:37 -07:00
parent 00f70a9432
commit 5381e85d3c

View File

@ -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)