From 932f49648b319b3ba7af2c09f10df6d45b558628 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 6 Jul 2016 16:50:14 -0600 Subject: [PATCH] change abuse command flood to except trusted users instead of just owners --- plugins/Misc/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Misc/plugin.py b/plugins/Misc/plugin.py index a9eb34a56..70ad0e3c8 100644 --- a/plugins/Misc/plugin.py +++ b/plugins/Misc/plugin.py @@ -105,7 +105,7 @@ class Misc(callbacks.Plugin): self.invalidCommands.enqueue(msg) if self.invalidCommands.len(msg) > maximum and \ conf.supybot.abuse.flood.command.invalid() and \ - not ircdb.checkCapability(msg.prefix, 'owner'): + not ircdb.checkCapability(msg.prefix, 'trusted'): punishment = conf.supybot.abuse.flood.command.invalid.punishment() banmask = '*!%s@%s' % (msg.user, msg.host) self.log.info('Ignoring %s for %s seconds due to an apparent ' @@ -133,7 +133,7 @@ class Misc(callbacks.Plugin): maximum = conf.supybot.abuse.flood.command.invalid.maximum() banmasker = conf.supybot.protocols.irc.banmask.makeBanmask if self.invalidCommands.len(msg) > maximum and \ - not ircdb.checkCapability(msg.prefix, 'owner') and \ + not ircdb.checkCapability(msg.prefix, 'trusted') and \ msg.prefix != irc.prefix and \ ircutils.isUserHostmask(msg.prefix): penalty = conf.supybot.abuse.flood.command.invalid.punishment()