Fixed a bug in @deluser when booting an already logged-in player.
This commit is contained in:
parent
ec4c29b592
commit
35acad6162
1 changed files with 5 additions and 2 deletions
|
|
@ -367,8 +367,11 @@ class CmdDelPlayer(MuxCommand):
|
||||||
if reason:
|
if reason:
|
||||||
string += " Reason given:\n '%s'" % reason
|
string += " Reason given:\n '%s'" % reason
|
||||||
character.msg(string)
|
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()
|
player.delete()
|
||||||
user.delete()
|
user.delete()
|
||||||
caller.msg("Player %s was successfully deleted." % uname)
|
caller.msg("Player %s was successfully deleted." % uname)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue