Owner: Being ignored for commands flood is now restricted to non-trusted users (instead of non-owners). Closes GH-13.

This commit is contained in:
Valentin Lorentz 2011-06-22 20:02:43 +02:00
parent 9d5365248e
commit 1c07963a90

View File

@ -252,7 +252,7 @@ class Owner(callbacks.Plugin):
self.commands.enqueue(msg)
if conf.supybot.abuse.flood.command() \
and self.commands.len(msg) > maximum \
and not ircdb.checkCapability(msg.prefix, 'owner'):
and not ircdb.checkCapability(msg.prefix, 'trusted'):
punishment = conf.supybot.abuse.flood.command.punishment()
banmask = ircutils.banmask(msg.prefix)
self.log.info('Ignoring %s for %s seconds due to an apparent '