AttackProtector: Display a line in the log if someone is not punished because they are immune.

master
Valentin Lorentz 2012-12-30 14:34:54 +00:00
parent 9178963581
commit 9ecd9b475c
1 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,8 @@ class AttackProtector(callbacks.Plugin):
if capability:
if ircdb.checkCapability(msg.prefix,
','.join([channel, capability])):
self.log.info('Not punishing %s: they are immune.' %
prefix)
return
except KeyError:
pass