From 3ac27692feb5995c2bc3fd9498895db0badf7c57 Mon Sep 17 00:00:00 2001 From: Nicolas Coevoet Date: Wed, 18 Dec 2013 21:15:37 +0100 Subject: [PATCH] prevent ban for +eI people with channel bans mask --- plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.py b/plugin.py index 92b0cb4..454d0ca 100644 --- a/plugin.py +++ b/plugin.py @@ -1900,10 +1900,10 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): n.addLog(channel,'has joined') c = ircdb.channels.getChannel(channel) banned = False - if c.bans: - for ban in c.bans: + if c.bans and not self._isVip(irc,channel,n): + for ban in c.bans: if match (ban,n,irc): - i.add(irc,channel,'b',best,-1,irc.prefix,self.getDb(irc.network)) + i.add(irc,channel,'b',best,-1,irc.prefix,self.getDb(irc.network)) banned = True if best and not self._isVip(irc,channel,n) and not banned: isMassJoin = self._isSomething(irc,channel,channel,'massJoin')