More fixes to stasis.
This commit is contained in:
parent
23574cdd45
commit
49303b62eb
@ -2527,7 +2527,13 @@ def fstasis(cli, nick, *rest):
|
|||||||
cloak = None
|
cloak = None
|
||||||
amt = data[1]
|
amt = data[1]
|
||||||
if cloak is not None:
|
if cloak is not None:
|
||||||
var.STASISED[cloak] = int(amt)
|
if amt < 0 and cloak in var.STASISED:
|
||||||
|
var.STASISED[cloak] -= amt
|
||||||
|
cli.msg(nick, "{0} ({1}) is now in stasis for {2} games.".format(data[0], cloak, var.STASISED[cloak]))
|
||||||
|
elif amt <= 0:
|
||||||
|
var.STASISED[cloak].pop(int(amt))
|
||||||
|
cli.msg(nick, "{0} ({1}) is no longer in stasis.".format(data[0], cloak))
|
||||||
|
else:
|
||||||
cli.msg(nick, "{0} ({1}) is now in stasis for {2} games.".format(data[0], cloak, amt))
|
cli.msg(nick, "{0} ({1}) is now in stasis for {2} games.".format(data[0], cloak, amt))
|
||||||
else:
|
else:
|
||||||
cli.msg(nick, "Sorry, that user cannot be found.")
|
cli.msg(nick, "Sorry, that user cannot be found.")
|
||||||
|
Loading…
Reference in New Issue
Block a user