Fixing exit traversal. Was trying to be too careful for my own good in the command handler.

This commit is contained in:
Greg Taylor 2007-05-23 01:49:19 +00:00
parent 928a5a29d6
commit 8335f8b80f
3 changed files with 0 additions and 4 deletions

View file

@ -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

View file

@ -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)

View file

@ -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]