mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Make the 'command flood' banmask follow supybot.protocols.irc.banmask.
This commit is contained in:
parent
912d2e1538
commit
c81d5d3151
@ -247,7 +247,8 @@ class Owner(callbacks.Plugin):
|
||||
and self.commands.len(msg) > maximum \
|
||||
and not ircdb.checkCapability(msg.prefix, 'trusted'):
|
||||
punishment = conf.supybot.abuse.flood.command.punishment()
|
||||
banmask = ircutils.banmask(msg.prefix)
|
||||
banmask = conf.supybot.protocols.irc.banmask \
|
||||
.makeBanmask(msg.prefix)
|
||||
self.log.info('Ignoring %s for %s seconds due to an apparent '
|
||||
'command flood.', banmask, punishment)
|
||||
ircdb.ignores.add(banmask, time.time() + punishment)
|
||||
|
Loading…
Reference in New Issue
Block a user