modified setting entry used for duration of permanent bans item

This commit is contained in:
Nicolas Coevoet 2013-12-22 00:36:15 +01:00
parent c369ec7a47
commit c2c239c812

View File

@ -1964,7 +1964,7 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
if c.bans and len(c.bans) and self.registryValue('useChannelBansForPermanentBan',channel=channel):
for ban in list(c.bans):
if match (ban,n,irc):
if i.add(irc,channel,'b',best,self.registryValue('badDuration',channel=channel),irc.prefix,self.getDb(irc.network)):
if i.add(irc,channel,'b',best,self.registryValue('autoExpire',channel=channel),irc.prefix,self.getDb(irc.network)):
banned = True
self.forceTickle = True
break