fix extended room look logic
This commit is contained in:
parent
7b309b6f24
commit
9934ac682c
1 changed files with 9 additions and 2 deletions
|
|
@ -612,8 +612,15 @@ class CmdExtendedRoomLook(default_cmds.CmdLook):
|
||||||
else:
|
else:
|
||||||
# search, waiting to return errors so we can also check details
|
# search, waiting to return errors so we can also check details
|
||||||
target = caller.search(self.args, quiet=True)
|
target = caller.search(self.args, quiet=True)
|
||||||
if not target and not self.look_detail():
|
# if there's no target, check details
|
||||||
_AT_SEARCH_RESULT(target, caller, self.args, quiet=False)
|
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
|
return
|
||||||
desc = caller.at_look(target)
|
desc = caller.at_look(target)
|
||||||
# add the type=look to the outputfunc to make it
|
# add the type=look to the outputfunc to make it
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue