mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-05-06 03:23:41 -05:00
fix : extended bans for inspircd
This commit is contained in:
parent
0f5bacd675
commit
32799a9e7f
@ -3024,7 +3024,7 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
|
||||
|
||||
def hasExtendedSharedBan (self,irc,fromChannel,target,mode):
|
||||
# todo add support for others ircd if supported, currently only freenode
|
||||
b = '$j:%s' % fromChannel
|
||||
b = '%sj:%s' % (self.getIrcdExtbansPrefix(irc),fromChannel)
|
||||
kicks = []
|
||||
for channel in irc.state.channels:
|
||||
if b in irc.state.channels[channel].bans and mode in self.registryValue('kickMode',channel=channel) and not target.startswith('m:'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user