From 17f53446fd0f8f8110c394665e5337d7ee76d44d Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 17 Oct 2007 03:30:46 +0000 Subject: [PATCH] Check whether the user wants us to act on invalid command floods. (closes #1716878) --- plugins/Misc/plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/Misc/plugin.py b/plugins/Misc/plugin.py index 6d81999e4..b9cf4947c 100644 --- a/plugins/Misc/plugin.py +++ b/plugins/Misc/plugin.py @@ -63,6 +63,7 @@ class Misc(callbacks.Plugin): maximum = conf.supybot.abuse.flood.command.invalid.maximum() self.invalidCommands.enqueue(msg) if self.invalidCommands.len(msg) > maximum and \ + conf.supybot.abuse.flood.command.invalid() and \ not ircdb.checkCapability(msg.prefix, 'owner'): punishment = conf.supybot.abuse.flood.command.invalid.punishment() banmask = '*!%s@%s' % (msg.user, msg.host)