The at_say hook didn't forward the from_obj keyword to msg().
This commit is contained in:
parent
3b7648ec0e
commit
7e1057e74e
1 changed files with 3 additions and 2 deletions
|
|
@ -1645,7 +1645,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
||||||
for recv in receivers) if receivers else None,
|
for recv in receivers) if receivers else None,
|
||||||
"speech": message}
|
"speech": message}
|
||||||
self_mapping.update(custom_mapping)
|
self_mapping.update(custom_mapping)
|
||||||
self.msg(text=(msg_self.format(**self_mapping), {"type": msg_type}))
|
self.msg(text=(msg_self.format(**self_mapping), {"type": msg_type}), from_obj=self)
|
||||||
|
|
||||||
if receivers and msg_receivers:
|
if receivers and msg_receivers:
|
||||||
receiver_mapping = {"self": "You",
|
receiver_mapping = {"self": "You",
|
||||||
|
|
@ -1663,7 +1663,8 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
||||||
for recv in receivers) if receivers else None}
|
for recv in receivers) if receivers else None}
|
||||||
receiver_mapping.update(individual_mapping)
|
receiver_mapping.update(individual_mapping)
|
||||||
receiver_mapping.update(custom_mapping)
|
receiver_mapping.update(custom_mapping)
|
||||||
receiver.msg(text=(msg_receivers.format(**receiver_mapping), {"type": msg_type}))
|
receiver.msg(text=(msg_receivers.format(**receiver_mapping),
|
||||||
|
{"type": msg_type}), from_obj=self)
|
||||||
|
|
||||||
if self.location and msg_location:
|
if self.location and msg_location:
|
||||||
location_mapping = {"self": "You",
|
location_mapping = {"self": "You",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue