mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
plugins/Network: Fix an information leak in Network.whois
This commit is contained in:
parent
91874dba2c
commit
75ecf79d58
@ -160,6 +160,13 @@ class Network(callbacks.Plugin):
|
||||
normal = []
|
||||
halfops = []
|
||||
for channel in channels:
|
||||
chan = irc.state.channels.get(channel)
|
||||
if chan:
|
||||
# Skip channels the callee isn't in. This prevents us
|
||||
# leaking information when the channel is +s or the target
|
||||
# is +i
|
||||
if replyMsg.nick not in chan.users:
|
||||
continue
|
||||
if channel.startswith('@'):
|
||||
ops.append(channel[1:])
|
||||
elif channel.startswith('%'):
|
||||
|
Loading…
Reference in New Issue
Block a user