mirror of
https://github.com/evennia/evennia.git
synced 2026-04-06 16:44:08 +02:00
The at_say hook didn't forward the from_obj keyword to msg().
This commit is contained in:
parent
787f69ef85
commit
78ce03a486
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,
|
||||
"speech": message}
|
||||
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:
|
||||
receiver_mapping = {"self": "You",
|
||||
|
|
@ -1663,7 +1663,8 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
|||
for recv in receivers) if receivers else None}
|
||||
receiver_mapping.update(individual_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:
|
||||
location_mapping = {"self": "You",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue