Fix for fstasis().

This commit is contained in:
Yizhe Shen 2014-04-30 13:17:25 -04:00
parent 0ed3fa249c
commit 4052fc9b27

View File

@ -2580,8 +2580,8 @@ def on_error(cli, pfx, msg):
raise SystemExit raise SystemExit
@pmcmd("fstasis", admin_only=True) @cmd("fstasis", admin_only=True)
def fstasis(cli, nick, rest): def fstasis(cli, nick, chan, rest):
"""Admin command for removing or setting stasis penalties.""" """Admin command for removing or setting stasis penalties."""
data = rest.split() data = rest.split()
msg = None msg = None
@ -2590,7 +2590,7 @@ def fstasis(cli, nick, rest):
user = data[0].lower() user = data[0].lower()
if user not in lusers: if user not in lusers:
cli.msg(nick, "Sorry, {0} cannot be found.".format(data[0])) pm(cli, nick, "Sorry, {0} cannot be found.".format(data[0]))
return return
cloak = lusers[user]['cloak'] cloak = lusers[user]['cloak']