mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-08-13 08:27:22 +02:00
Check whether the user wants us to act on invalid command floods. (closes #1716878)
This commit is contained in:
parent
8fe69c1895
commit
17f53446fd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user