patch container-contrib look
This commit is contained in:
parent
b676e3c594
commit
4086f35f97
1 changed files with 9 additions and 8 deletions
|
|
@ -131,15 +131,16 @@ class CmdContainerLook(CmdLook):
|
||||||
if not target:
|
if not target:
|
||||||
self.msg("You have no location to look at!")
|
self.msg("You have no location to look at!")
|
||||||
return
|
return
|
||||||
elif self.rhs:
|
else:
|
||||||
# we are looking in something, find that first
|
if self.rhs:
|
||||||
container = caller.search(self.rhs)
|
# we are looking in something, find that first
|
||||||
if not container:
|
container = caller.search(self.rhs)
|
||||||
return
|
if not container:
|
||||||
|
return
|
||||||
|
|
||||||
target = caller.search(self.lhs, location=container)
|
target = caller.search(self.lhs, location=container)
|
||||||
if not target:
|
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