[AntiAbuse] Strip strings used with !ignore and !unignore

master
Sfan5 2013-04-19 15:33:43 +02:00
parent 03be2c31bd
commit efe9b314c3
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ aa_hook.rule = r'h^'
def ignore(phenny, input):
if not input.admin or not input.owner: return
arg = input.group(2)
arg = input.group(2).strip()
antiabuse["ignorelist"].append(arg)
phenny.reply("'%s' added to ignore list." % arg)
@ -44,7 +44,7 @@ ignore.priority = 'high'
def unignore(phenny, input):
if not input.admin or not input.owner: return
arg = input.group(2)
arg = input.group(2).strip()
try:
antiabuse["ignorelist"].remove(arg)
except: