mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-30 15:31:10 -05:00
prevent the bot to acts against +eI and protected users when a mode affects them
This commit is contained in:
parent
655925d808
commit
dee78a6a30
@ -2550,6 +2550,8 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
|
|||||||
if item and len(item.affects):
|
if item and len(item.affects):
|
||||||
for affected in item.affects:
|
for affected in item.affects:
|
||||||
nick = affected.split('!')[0]
|
nick = affected.split('!')[0]
|
||||||
|
if self._isVip(irc,channel,self.getNick(irc,nick):
|
||||||
|
continue
|
||||||
kicked = False
|
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 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:
|
if nick in irc.state.channels[channel].users and nick != irc.nick:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user