diff --git a/plugins/Channel/plugin.py b/plugins/Channel/plugin.py index 04cc1a1f6..65ae9bead 100644 --- a/plugins/Channel/plugin.py +++ b/plugins/Channel/plugin.py @@ -885,8 +885,11 @@ class Channel(callbacks.Plugin): """ # Make sure we don't elicit information about private channels to # 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 \ msg.args[0] != channel and \ + not ircdb.checkCapability(hostmask, capability) and \ (ircutils.isChannel(msg.args[0]) or \ msg.nick not in irc.state.channels[channel].users): irc.error(_('You don\'t have access to that information.'),