mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-12-02 08:07:26 +01: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()
|
maximum = conf.supybot.abuse.flood.command.invalid.maximum()
|
||||||
self.invalidCommands.enqueue(msg)
|
self.invalidCommands.enqueue(msg)
|
||||||
if self.invalidCommands.len(msg) > maximum and \
|
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, 'owner'):
|
||||||
punishment = conf.supybot.abuse.flood.command.invalid.punishment()
|
punishment = conf.supybot.abuse.flood.command.invalid.punishment()
|
||||||
banmask = '*!%s@%s' % (msg.user, msg.host)
|
banmask = '*!%s@%s' % (msg.user, msg.host)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user