mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
Channel: Let ops see nicks in a private channel. Closes GH-797.
This commit is contained in:
parent
e0b1796042
commit
5ff7b83fdd
@ -885,8 +885,11 @@ class Channel(callbacks.Plugin):
|
|||||||
"""
|
"""
|
||||||
# Make sure we don't elicit information about private channels to
|
# Make sure we don't elicit information about private channels to
|
||||||
# people or channels that shouldn't know
|
# people or channels that shouldn't know
|
||||||
|
capability = ircdb.makeChannelCapability(channel, 'op')
|
||||||
|
hostmask = irc.state.nickToHostmask(nick)
|
||||||
if 's' in irc.state.channels[channel].modes and \
|
if 's' in irc.state.channels[channel].modes and \
|
||||||
msg.args[0] != channel and \
|
msg.args[0] != channel and \
|
||||||
|
not ircdb.checkCapability(hostmask, capability) and \
|
||||||
(ircutils.isChannel(msg.args[0]) or \
|
(ircutils.isChannel(msg.args[0]) or \
|
||||||
msg.nick not in irc.state.channels[channel].users):
|
msg.nick not in irc.state.channels[channel].users):
|
||||||
irc.error(_('You don\'t have access to that information.'),
|
irc.error(_('You don\'t have access to that information.'),
|
||||||
|
Loading…
Reference in New Issue
Block a user