Made the open command require exact exit names.
This commit is contained in:
parent
3c2e44346a
commit
e449c3391f
1 changed files with 2 additions and 2 deletions
|
|
@ -1130,10 +1130,10 @@ class CmdOpen(ObjManipCommand):
|
||||||
# check if this exit object already exists at the location.
|
# check if this exit object already exists at the location.
|
||||||
# we need to ignore errors (so no automatic feedback)since we
|
# we need to ignore errors (so no automatic feedback)since we
|
||||||
# have to know the result of the search to decide what to do.
|
# have to know the result of the search to decide what to do.
|
||||||
exit_obj = caller.search(exit_name, location=location, quiet=True)
|
exit_obj = caller.search(exit_name, location=location, quiet=True, exact=True)
|
||||||
if len(exit_obj) > 1:
|
if len(exit_obj) > 1:
|
||||||
# give error message and return
|
# give error message and return
|
||||||
caller.search(exit_name, location=location)
|
caller.search(exit_name, location=location, exact=True)
|
||||||
return
|
return
|
||||||
if exit_obj:
|
if exit_obj:
|
||||||
exit_obj = exit_obj[0]
|
exit_obj = exit_obj[0]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue