mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-27 05:21:10 -05:00
prevent ban for +eI people with channel bans mask
This commit is contained in:
parent
4075383d80
commit
3ac27692fe
@ -1900,10 +1900,10 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
|
|||||||
n.addLog(channel,'has joined')
|
n.addLog(channel,'has joined')
|
||||||
c = ircdb.channels.getChannel(channel)
|
c = ircdb.channels.getChannel(channel)
|
||||||
banned = False
|
banned = False
|
||||||
if c.bans:
|
if c.bans and not self._isVip(irc,channel,n):
|
||||||
for ban in c.bans:
|
for ban in c.bans:
|
||||||
if match (ban,n,irc):
|
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
|
banned = True
|
||||||
if best and not self._isVip(irc,channel,n) and not banned:
|
if best and not self._isVip(irc,channel,n) and not banned:
|
||||||
isMassJoin = self._isSomething(irc,channel,channel,'massJoin')
|
isMassJoin = self._isSomething(irc,channel,channel,'massJoin')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user