Skip to content

Commit

Permalink
Update objects.py
Browse files Browse the repository at this point in the history
Removed the following line from at_pre_puppet, because it is repeated in at_post_puppet and results in the message "%s has entered the game" appearing twice.

self.location.msg_contents("%s has entered the game." % self.name, exclude=[self])
  • Loading branch information
delizin committed Jan 31, 2014
1 parent 770e443 commit 967d283
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/objects/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
The instances of all the different object types are all tied to their
own database object stored in the 'dbobj' property. All attribute
get/set operations are channeled transparently to the database object
as desired. You should normally never have to worry about the database
as desired. You should normally nevfer have to worry about the database
abstraction, just do everything on the TypeClass object.
That an object is controlled by a player/user is just defined by its
Expand Down Expand Up @@ -902,7 +902,6 @@ def at_pre_puppet(self, player, sessid=None):
if self.location:
# save location again to be sure
self.db.prelogout_location = self.location
self.location.msg_contents("%s has entered the game." % self.name, exclude=[self])
self.location.at_object_receive(self, self.location)
else:
player.msg("{r%s has no location and no home is set.{n" % self, sessid=sessid)
Expand Down

0 comments on commit 967d283

Please sign in to comment.