mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 00:36:30 +01:00
Further fixes to DefaultObject.search string
This commit is contained in:
parent
0c523a8043
commit
78d5190632
1 changed files with 3 additions and 5 deletions
|
|
@ -459,11 +459,9 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
error depending on the value of `quiet`.
|
||||
|
||||
Returns:
|
||||
Object: If finding a match an `quiet=False`
|
||||
None: If not finding a unique match and `quiet=False`.
|
||||
list: With 0, 1 or more matching objects if `quiet=True`
|
||||
list: With 2 or more matching objects if `stacked` is a positive integer and
|
||||
the matched stack has only object-copies.
|
||||
Object, None or list: Will return an `Object` or `None` if `quiet=False`. Will return
|
||||
a `list` with 0, 1 or more matches if `quiet=True`. If `stacked` is a positive integer,
|
||||
this list may contain all stacked identical matches.
|
||||
|
||||
Notes:
|
||||
To find Accounts, use eg. `evennia.account_search`. If
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue