AttackProtector: Enforce config checks.

master
Valentin Lorentz 2013-05-18 17:30:47 +02:00
parent 2976ead4fc
commit cca795c62f
2 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,7 @@ class Punishment(registry.String):
int(s[5:])
except ValueError:
self.error()
return
self.setValue(s)
Punishment = internationalizeDocstring(Punishment)

View File

@ -61,6 +61,7 @@ class Seeks(callbacks.Plugin):
raise
irc.error("Server's JSON is corrupted")
return
print repr(content)
snippets = content["snippets"]
if len(snippets) == 0:
irc.reply('No results')