fix announces on same channel while not opped

This commit is contained in:
Nicolas Coevoet 2015-03-04 22:37:41 +01:00
parent b1a90e3b9e
commit fc7feae30a

View File

@ -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: