mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-27 05:03:07 +01:00
Channel: Fix capability check in alertOps, to check the target instead of sender.
This commit is contained in:
parent
c93493901e
commit
f468557899
@ -950,8 +950,12 @@ class Channel(callbacks.Plugin):
|
||||
if frm is not None:
|
||||
s += format(_(' (from %s)'), frm)
|
||||
for nick in irc.state.channels[channel].users:
|
||||
if ircdb.checkCapability(msg.prefix, capability):
|
||||
irc.reply(s, to=nick, private=True)
|
||||
prefix = irc.state.nicksToHostmasks.get(nick)
|
||||
if not prefix:
|
||||
continue
|
||||
if not ircdb.checkCapability(prefix, capability):
|
||||
continue
|
||||
irc.reply(s, to=nick, private=True)
|
||||
irc.replySuccess()
|
||||
|
||||
@internationalizeDocstring
|
||||
|
Loading…
Reference in New Issue
Block a user