mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 16:56:32 +01:00
Fixing exit traversal. Was trying to be too careful for my own good in the command handler.
This commit is contained in:
parent
928a5a29d6
commit
8335f8b80f
3 changed files with 0 additions and 4 deletions
|
|
@ -123,8 +123,6 @@ def handle(cdat):
|
|||
# Debugging stuff.
|
||||
#session.msg("ROOT : %s" % (parsed_input['root_cmd'],))
|
||||
#session.msg("SPLIT: %s" % (parsed_input['splitted'],))
|
||||
if not cmd:
|
||||
raise UnknownCommand
|
||||
|
||||
if callable(cmd):
|
||||
cdat['uinput'] = parsed_input
|
||||
|
|
|
|||
|
|
@ -351,7 +351,6 @@ def cmd_open(cdat):
|
|||
session.msg("You can't open an exit to an exit!")
|
||||
return
|
||||
|
||||
print exit_name
|
||||
odat = {"name": exit_name, "type": 4, "location": pobject.get_location(), "owner": pobject, "home":destination}
|
||||
new_object = functions_db.create_object(odat)
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,6 @@ def list_search_object_namestr(searchlist, ostring, dbref_only=False, limit_type
|
|||
dbref_only: (bool) Only compare dbrefs.
|
||||
limit_types: (list of int) A list of Object type numbers to filter by.
|
||||
"""
|
||||
|
||||
if dbref_only:
|
||||
if limit_types:
|
||||
return [prospect for prospect in searchlist if prospect.dbref_match(ostring) and prospect.type in limit_types]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue