From dee78a6a305bd1fc563bdf75e05c19e471cf5b58 Mon Sep 17 00:00:00 2001 From: Nicolas Coevoet Date: Sat, 21 Dec 2013 09:37:51 +0100 Subject: [PATCH] prevent the bot to acts against +eI and protected users when a mode affects them --- plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin.py b/plugin.py index b2cc0d9..5805a51 100644 --- a/plugin.py +++ b/plugin.py @@ -2550,6 +2550,8 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): if item and len(item.affects): for affected in item.affects: nick = affected.split('!')[0] + if self._isVip(irc,channel,self.getNick(irc,nick): + continue kicked = False if m in self.registryValue('kickMode',channel=channel) and msg.nick == irc.nick: # and not value.startswith(self.getIrcdExtbans(irc)) works for unreal if nick in irc.state.channels[channel].users and nick != irc.nick: