mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Some doc cleanup.
This commit is contained in:
parent
edc25824f7
commit
0077408d02
3 changed files with 8 additions and 10 deletions
|
|
@ -116,8 +116,8 @@ def cmdparser(raw_string, cmdset, caller, match_index=None):
|
|||
#
|
||||
# You can replace these from the settings file by setting the variables
|
||||
#
|
||||
# SEARCH_AT_RESULTERROR_HANDLER
|
||||
# SEARCH_MULTIMATCH_PARSER
|
||||
# SEARCH_AT_RESULT
|
||||
# SEARCH_AT_MULTIMATCH_INPUT
|
||||
#
|
||||
# The the replacing functions must have the same inputs and outputs as
|
||||
# those in this module.
|
||||
|
|
|
|||
|
|
@ -389,9 +389,10 @@ class ObjectDB(TypedObject):
|
|||
equal to searchdata. A special use is to search for
|
||||
"key" here if you want to do a key-search without
|
||||
including aliases.
|
||||
quiet (bool) - don't display default error messages - return multiple
|
||||
matches as a list and no matches as None. If not
|
||||
set (default), will echo error messages and return None.
|
||||
quiet (bool) - don't display default error messages - this tells the
|
||||
search method that the user wants to handle all errors
|
||||
themselves. It also changes the return value type, see
|
||||
below.
|
||||
exact (bool) - if unset (default) - prefers to match to beginning of
|
||||
string rather than not matching at all. If set, requires
|
||||
exact mathing of entire string.
|
||||
|
|
@ -405,10 +406,7 @@ class ObjectDB(TypedObject):
|
|||
match:
|
||||
a unique object match
|
||||
quiet=True:
|
||||
no match or multimatch:
|
||||
returns None or list of multi-matches
|
||||
match:
|
||||
a unique object match
|
||||
returns a list of 0, 1 or more matches
|
||||
|
||||
"""
|
||||
is_string = isinstance(searchdata, basestring)
|
||||
|
|
|
|||
|
|
@ -1053,7 +1053,7 @@ class Exit(Object):
|
|||
locks=str(exidbobj.locks),
|
||||
auto_help=False,
|
||||
destination=exidbobj.db_destination,
|
||||
arg_regex=r"$",
|
||||
arg_regex=r"^$",
|
||||
is_exit=True,
|
||||
obj=exidbobj)
|
||||
# create a cmdset
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue