Fixing a bug in @ic if trying to puppet while already puppeting. Added sessid keyword to at_post_login hook in order to correctly relay login text only to the correct session. Removed the src.utils.debug module as well as the CmdDebug command which has not been supported for a good while.

This commit is contained in:
Griatch 2013-04-18 09:13:31 +02:00
parent a3f12a289d
commit 416d6e14bc
10 changed files with 22 additions and 316 deletions

View file

@ -237,7 +237,6 @@ class CmdIC(MuxPlayerCommand):
self.msg("{rYou may not become %s.{n" % new_character.name)
return
if player.puppet_object(sessid, new_character):
self.msg("\n{gYou become {c%s{n.\n" % new_character.name)
player.db._last_puppet = new_character
if not new_character.location:
# this might be due to being hidden away at logout; check
@ -245,10 +244,7 @@ class CmdIC(MuxPlayerCommand):
if not loc: # still no location; use home
loc = new_character.home
new_character.location = loc
if new_character.location:
new_character.location.msg_contents("%s has entered the game." % new_character.key, exclude=[new_character])
new_character.location.at_object_receive(new_character, new_character.location)
new_character.execute_cmd("look")
new_character.location.at_object_receive(new_character, new_character.location)
else:
self.msg("{rYou cannot become {C%s{n." % new_character.name)