mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:39:42 +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,7 +950,11 @@ class Channel(callbacks.Plugin):
|
|||||||
if frm is not None:
|
if frm is not None:
|
||||||
s += format(_(' (from %s)'), frm)
|
s += format(_(' (from %s)'), frm)
|
||||||
for nick in irc.state.channels[channel].users:
|
for nick in irc.state.channels[channel].users:
|
||||||
if ircdb.checkCapability(msg.prefix, capability):
|
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.reply(s, to=nick, private=True)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user