oops
This commit is contained in:
parent
b0b742ac2f
commit
3db304dfb5
14
antiabuse.py
14
antiabuse.py
@ -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)
|
||||||
phenny.reply("'%s' removed from ignore list." % arg)
|
if r:
|
||||||
|
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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user