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

@ -407,7 +407,7 @@ class PlayerDB(TypedObject):
return False
if normal_mode and session.puppet:
# cleanly unpuppet eventual previous object puppeted by this session
self.unpuppet_object(self, sessid)
self.unpuppet_object(sessid)
if obj.player and obj.player.is_connected and obj.player != self:
# we don't allow to puppet an object already controlled by an active
# player. To kick a player, call unpuppet_object on them explicitly.