Misc: Fix count of invalid commands introduced in c91916ae. Closes GH-439.

This commit is contained in:
Valentin Lorentz 2014-01-21 11:54:06 +01:00
parent 40e6f789cf
commit 74a36c8cfc

View File

@ -119,7 +119,6 @@ class Misc(callbacks.Plugin):
# will only be called if this is *truly* an invalid command.
maximum = conf.supybot.abuse.flood.command.invalid.maximum()
banmasker = conf.supybot.protocols.irc.banmask.makeBanmask
self.invalidCommands.enqueue(msg)
if self.invalidCommands.len(msg) > maximum and \
not ircdb.checkCapability(msg.prefix, 'owner') and \
msg.prefix != irc.prefix and \