Fixed some hooks to match wiki docs.

This commit is contained in:
Griatch 2011-02-14 18:31:16 +00:00
parent 923b9ac2ec
commit 6a13d07c55
3 changed files with 18 additions and 4 deletions

View file

@ -258,11 +258,11 @@ class PlayerDB(TypedObject):
"""
if from_obj:
try:
from_obj.at_msg_send(outgoing_string, self)
from_obj.at_msg_send(outgoing_string, to_obj=self, data=data)
except Exception:
pass
if self.character:
if self.character.at_msg_receive(outgoing_string, from_obj):
if self.character.at_msg_receive(outgoing_string, from_obj=from_obj, data=data):
for session in object.__getattribute__(self, 'sessions'):
session.msg(outgoing_string, data)