mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 15:26:30 +01:00
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:
parent
a3f12a289d
commit
416d6e14bc
10 changed files with 22 additions and 316 deletions
|
|
@ -803,6 +803,15 @@ class Character(Object):
|
|||
self.location.msg_contents("%s has entered the game." % self.name, exclude=[self])
|
||||
self.location.at_object_receive(self, self.location)
|
||||
|
||||
def at_post_puppet(self):
|
||||
"""
|
||||
Called just after puppeting has completed.
|
||||
"""
|
||||
self.msg("\nYou become {c%s{n.\n" % self.name)
|
||||
self.execute_cmd("look")
|
||||
if self.location:
|
||||
self.location.msg_contents("%s has entered the game." % self.name, exclude=[self])
|
||||
|
||||
def at_post_unpuppet(self, player):
|
||||
"""
|
||||
We stove away the character when the player goes ooc/logs off, otherwise the character object will
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue