Fixed a bug in @deluser when booting an already logged-in player.

This commit is contained in:
Griatch 2012-06-29 07:51:59 +02:00
parent ec4c29b592
commit 35acad6162

View file

@ -367,8 +367,11 @@ class CmdDelPlayer(MuxCommand):
if reason:
string += " Reason given:\n '%s'" % reason
character.msg(string)
caller.execute_cmd("@boot %s" % uname)
# we have a bootable object with a connected player
sessions = SESSIONS.sessions_from_player(character.player)
for session in sessions:
session.msg(string)
session.disconnect()
player.delete()
user.delete()
caller.msg("Player %s was successfully deleted." % uname)