From 8335f8b80fbe4ba4842ee1d3e6cc89ddd15eafaf Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Wed, 23 May 2007 01:49:19 +0000 Subject: [PATCH] Fixing exit traversal. Was trying to be too careful for my own good in the command handler. --- cmdhandler.py | 2 -- commands_privileged.py | 1 - functions_db.py | 1 - 3 files changed, 4 deletions(-) diff --git a/cmdhandler.py b/cmdhandler.py index d5cee197f1..7165bf7566 100755 --- a/cmdhandler.py +++ b/cmdhandler.py @@ -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 diff --git a/commands_privileged.py b/commands_privileged.py index 9e6ac0b601..2051dbbf0d 100644 --- a/commands_privileged.py +++ b/commands_privileged.py @@ -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) diff --git a/functions_db.py b/functions_db.py index b84e200b10..dbd0987910 100644 --- a/functions_db.py +++ b/functions_db.py @@ -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]