Check whether the user wants us to act on invalid command floods. (closes #1716878)

This commit is contained in:
James Vega 2007-10-17 03:30:46 +00:00
parent 8fe69c1895
commit 17f53446fd

View File

@ -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)