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

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