mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 05:27:17 +02:00
Merge pull request #1525 from TehomCD/fix_at_say_msg_receivers
Fix msg_receivers to be used
This commit is contained in:
commit
80e7a28e4f
1 changed files with 2 additions and 2 deletions
|
|
@ -1624,7 +1624,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
|||
# whisper mode
|
||||
msg_type = 'whisper'
|
||||
msg_self = '{self} whisper to {all_receivers}, "{speech}"' if msg_self is True else msg_self
|
||||
msg_receivers = '{object} whispers: "{speech}"'
|
||||
msg_receivers = msg_receivers or '{object} whispers: "{speech}"'
|
||||
msg_location = None
|
||||
else:
|
||||
msg_self = '{self} say, "{speech}"' if msg_self is True else msg_self
|
||||
|
|
@ -1669,7 +1669,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
|||
location_mapping = {"self": "You",
|
||||
"object": self,
|
||||
"location": location,
|
||||
"all_receivers": ", ".join(recv for recv in receivers) if receivers else None,
|
||||
"all_receivers": ", ".join(str(recv) for recv in receivers) if receivers else None,
|
||||
"receiver": None,
|
||||
"speech": message}
|
||||
location_mapping.update(custom_mapping)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue