mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-26 13:01:06 -05:00
fix announces on same channel while not opped
This commit is contained in:
parent
b1a90e3b9e
commit
fc7feae30a
@ -2241,7 +2241,7 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
|
||||
logChannel = self.registryValue('logChannel',channel=channel)
|
||||
if logChannel in irc.state.channels:
|
||||
i = self.getIrc(irc)
|
||||
if logChannel == channel:
|
||||
if logChannel == channel and irc.nick in irc.state.channels[channel].ops:
|
||||
if self.registryValue ('announceWithNotice',channel=channel):
|
||||
i.lowQueue.enqueue(ircmsgs.IrcMsg('NOTICE @%s :%s' % (logChannel,message)))
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user