mirror of
https://github.com/jlu5/PyLink.git
synced 2025-03-28 10:31:01 +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(',')
|
channels = args[0].split(',')
|
||||||
|
|
||||||
for channel in channels.copy():
|
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.
|
# Ignore channels the user isn't on, and remove them from any hook payloads.
|
||||||
channels.remove(channel)
|
channels.remove(channel)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user