mirror of
https://github.com/evennia/evennia.git
synced 2026-03-19 14:26:30 +01:00
Added arg_regex, an optional Command class-method for customizing how commands are identified by using a regex to enforce a specific look/grammar to the command argument. Discussed and suggested in issue 213.
This commit is contained in:
parent
42254fa3c4
commit
690bfadd9d
4 changed files with 13 additions and 3 deletions
|
|
@ -500,6 +500,7 @@ class Exit(Object):
|
|||
"""
|
||||
locks = "cmd:all()" # should always be set to this.
|
||||
obj = None
|
||||
arg_regex=r"\s.*?|$"
|
||||
|
||||
def func(self):
|
||||
"Default exit traverse if no syscommand is defined."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue