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.
|
# Debugging stuff.
|
||||||
#session.msg("ROOT : %s" % (parsed_input['root_cmd'],))
|
#session.msg("ROOT : %s" % (parsed_input['root_cmd'],))
|
||||||
#session.msg("SPLIT: %s" % (parsed_input['splitted'],))
|
#session.msg("SPLIT: %s" % (parsed_input['splitted'],))
|
||||||
if not cmd:
|
|
||||||
raise UnknownCommand
|
|
||||||
|
|
||||||
if callable(cmd):
|
if callable(cmd):
|
||||||
cdat['uinput'] = parsed_input
|
cdat['uinput'] = parsed_input
|
||||||
|
|
|
||||||
|
|
@ -351,7 +351,6 @@ def cmd_open(cdat):
|
||||||
session.msg("You can't open an exit to an exit!")
|
session.msg("You can't open an exit to an exit!")
|
||||||
return
|
return
|
||||||
|
|
||||||
print exit_name
|
|
||||||
odat = {"name": exit_name, "type": 4, "location": pobject.get_location(), "owner": pobject, "home":destination}
|
odat = {"name": exit_name, "type": 4, "location": pobject.get_location(), "owner": pobject, "home":destination}
|
||||||
new_object = functions_db.create_object(odat)
|
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.
|
dbref_only: (bool) Only compare dbrefs.
|
||||||
limit_types: (list of int) A list of Object type numbers to filter by.
|
limit_types: (list of int) A list of Object type numbers to filter by.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if dbref_only:
|
if dbref_only:
|
||||||
if limit_types:
|
if limit_types:
|
||||||
return [prospect for prospect in searchlist if prospect.dbref_match(ostring) and prospect.type in 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