AttackProtector: Fix traceback when flood in private.

master
Valentin Lorentz 2011-08-30 09:24:10 +02:00
parent 561099623c
commit 0cf31b88ae
1 changed files with 3 additions and 0 deletions

View File

@ -162,6 +162,9 @@ class AttackProtector(callbacks.Plugin):
nick = prefix.split('!')[0]
kind = lastItem.kind
if not ircutils.isChannel(channel):
return
try:
ircdb.users.getUser(msg.prefix) # May raise KeyError
capability = self.registryValue('exempt')