Merge pull request #3208 from InspectorCaracal/patch-8

Fix ExtendedRoom look logic
This commit is contained in:
Griatch 2023-06-17 09:03:40 +02:00 committed by GitHub
commit 19c4f6c544

View file

@ -612,8 +612,15 @@ class CmdExtendedRoomLook(default_cmds.CmdLook):
else:
# search, waiting to return errors so we can also check details
target = caller.search(self.args, quiet=True)
if not target and not self.look_detail():
_AT_SEARCH_RESULT(target, caller, self.args, quiet=False)
# if there's no target, check details
if not target:
# no target AND no detail means run the normal no-results message
if not self.look_detail():
_AT_SEARCH_RESULT(target, caller, self.args, quiet=False)
return
# otherwise, run normal search result handling
target = _AT_SEARCH_RESULT(target, caller, self.args, quiet=False)
if not target:
return
desc = caller.at_look(target)
# add the type=look to the outputfunc to make it