This commit is contained in:
sfan5 2014-08-19 17:33:19 +02:00
parent b0b742ac2f
commit 3db304dfb5

View File

@ -85,11 +85,8 @@ def ignore(phenny, input):
if not input.admin: if not input.admin:
return return
arg = hmasktrans(input.group(2).strip()) arg = hmasktrans(input.group(2).strip())
r = api_ignore(arg) api_ignore(arg)
if r:
phenny.reply("'%s' added to ignore list." % arg) phenny.reply("'%s' added to ignore list." % arg)
else:
phenny.reply("'%s' not in ignore list." % arg)
ignore.commands = ['ignore'] ignore.commands = ['ignore']
ignore.priority = 'high' ignore.priority = 'high'
@ -98,8 +95,11 @@ def unignore(phenny, input):
if not input.admin: if not input.admin:
return return
arg = hmasktrans(input.group(2).strip()) arg = hmasktrans(input.group(2).strip())
api_unignore(arg) r = api_unignore(arg)
if r:
phenny.reply("'%s' removed from ignore list." % arg) phenny.reply("'%s' removed from ignore list." % arg)
else:
phenny.reply("'%s' not in ignore list." % arg)
unignore.commands = ['unignore'] unignore.commands = ['unignore']
unignore.priority = 'high' unignore.priority = 'high'