Fix players being stasised when they quit

Commit 9cd0641 made players get stasised whenever they leave a game, not
just when they are /kicked by a channel operator.
This commit is contained in:
nyuszika7h 2014-05-10 17:00:21 +02:00
parent 3c90875291
commit 397221537b

View File

@ -1290,10 +1290,10 @@ def leave(cli, what, nick, why=""):
else:
msg = ("\02{0}\02 died due to falling off a cliff. The "+
"\02{1}\02 is lost to the ravine forever.").format(nick, var.get_reveal_role(nick))
make_stasis(nick, var.LEAVE_STASIS_PENALTY)
cli.msg(botconfig.CHANNEL, msg)
var.LOGGER.logMessage(msg.replace("\02", ""))
if killplayer:
make_stasis(nick, var.LEAVE_STASIS_PENALTY)
del_player(cli, nick)
else:
var.DISCONNECTED[nick] = (cloak, datetime.now(), what)