This commit is contained in:
Valentin Lorentz 2014-10-09 14:20:25 +00:00
parent 95e2a796c6
commit 13c2bd3fcc

View File

@ -886,7 +886,7 @@ 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') capability = ircdb.makeChannelCapability(channel, 'op')
hostmask = irc.state.nickToHostmask(nick) hostmask = irc.state.nickToHostmask(msg.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 \ not ircdb.checkCapability(hostmask, capability) and \