mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 19:52:53 +01:00
IRCS2SProtocol: fix wrong if: statement regarding user presence
This commit is contained in:
parent
00f70a9432
commit
5381e85d3c
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user