Merge pull request #2959 from InspectorCaracal/InspectorCaracal-patch-2

Fix msg_contents funcparsing
This commit is contained in:
Griatch 2022-10-26 19:33:25 +02:00 committed by GitHub
commit 1dabcda28b

View file

@ -763,7 +763,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
for receiver in contents:
# actor-stance replacements
inmessage = _MSG_CONTENTS_PARSER.parse(
outmessage = _MSG_CONTENTS_PARSER.parse(
inmessage,
raise_errors=raise_funcparse_errors,
return_string=True,
@ -773,7 +773,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
)
# director-stance replacements
outmessage = inmessage.format_map(
outmessage = outmessage.format_map(
{
key: obj.get_display_name(looker=receiver)
if hasattr(obj, "get_display_name")