mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-10-19 18:37:21 +02:00
Misc: Fix count of invalid commands introduced in c91916ae. Closes GH-439.
This commit is contained in:
parent
40e6f789cf
commit
74a36c8cfc
@ -119,7 +119,6 @@ class Misc(callbacks.Plugin):
|
|||||||
# will only be called if this is *truly* an invalid command.
|
# will only be called if this is *truly* an invalid command.
|
||||||
maximum = conf.supybot.abuse.flood.command.invalid.maximum()
|
maximum = conf.supybot.abuse.flood.command.invalid.maximum()
|
||||||
banmasker = conf.supybot.protocols.irc.banmask.makeBanmask
|
banmasker = conf.supybot.protocols.irc.banmask.makeBanmask
|
||||||
self.invalidCommands.enqueue(msg)
|
|
||||||
if self.invalidCommands.len(msg) > maximum and \
|
if self.invalidCommands.len(msg) > maximum and \
|
||||||
not ircdb.checkCapability(msg.prefix, 'owner') and \
|
not ircdb.checkCapability(msg.prefix, 'owner') and \
|
||||||
msg.prefix != irc.prefix and \
|
msg.prefix != irc.prefix and \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user