mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 12:07:17 +02:00
Changed player.search to only search for players explicitly.
Added a MuxCommandOOC class to handle the OOC commands in a more uniform way. Fixed the @ic/@ooc and page commands. Resolves issue 233. Resolves issue 234.
This commit is contained in:
parent
96e95ca525
commit
8ad4f4a9fc
12 changed files with 253 additions and 168 deletions
|
|
@ -203,7 +203,7 @@ class ObjectManager(TypedObjectManager):
|
|||
@returns_typeclass_list
|
||||
def object_search(self, ostring, caller=None,
|
||||
global_search=False,
|
||||
attribute_name=None, location=None):
|
||||
attribute_name=None, location=None, single_result=False):
|
||||
"""
|
||||
Search as an object and return results. The result is always an Object.
|
||||
If * is appended (player search, a Character controlled by this Player
|
||||
|
|
@ -313,7 +313,7 @@ class ObjectManager(TypedObjectManager):
|
|||
matches = [matches[match_number]]
|
||||
except IndexError:
|
||||
pass
|
||||
# This is always a list.
|
||||
# We always have a (possibly empty) list at this point.
|
||||
return matches
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue