mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
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.
|
||||
# we need to ignore errors (so no automatic feedback)since we
|
||||
# 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:
|
||||
# give error message and return
|
||||
caller.search(exit_name, location=location)
|
||||
caller.search(exit_name, location=location, exact=True)
|
||||
return
|
||||
if exit_obj:
|
||||
exit_obj = exit_obj[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue