From fc7feae30a81186f2571b42ba43cdbde8ae637c4 Mon Sep 17 00:00:00 2001 From: Nicolas Coevoet Date: Wed, 4 Mar 2015 22:37:41 +0100 Subject: [PATCH] fix announces on same channel while not opped --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index a5045e0..5f65b89 100644 --- a/plugin.py +++ b/plugin.py @@ -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: