mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 13:07:16 +02:00
Cleanup arg_regex for general commands.
This commit is contained in:
parent
7e7cd9211f
commit
ac73b82db9
1 changed files with 6 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ class CmdHome(MuxCommand):
|
|||
|
||||
key = "home"
|
||||
locks = "cmd:perm(home) or perm(Builders)"
|
||||
arg_regex = r"$"
|
||||
|
||||
def func(self):
|
||||
"Implement the command"
|
||||
|
|
@ -53,7 +54,7 @@ class CmdLook(MuxCommand):
|
|||
key = "look"
|
||||
aliases = ["l", "ls"]
|
||||
locks = "cmd:all()"
|
||||
arg_regex = r"\s.*?|$"
|
||||
arg_regex = r"\s|$"
|
||||
|
||||
def func(self):
|
||||
"""
|
||||
|
|
@ -216,6 +217,7 @@ class CmdGet(MuxCommand):
|
|||
key = "get"
|
||||
aliases = "grab"
|
||||
locks = "cmd:all()"
|
||||
arg_regex = r"\s|$"
|
||||
|
||||
def func(self):
|
||||
"implements the command."
|
||||
|
|
@ -305,6 +307,7 @@ class CmdGive(MuxCommand):
|
|||
"""
|
||||
key = "give"
|
||||
locks = "cmd:all()"
|
||||
arg_regex = r"\s|$"
|
||||
|
||||
def func(self):
|
||||
"Implement give"
|
||||
|
|
@ -342,6 +345,7 @@ class CmdDesc(MuxCommand):
|
|||
"""
|
||||
key = "desc"
|
||||
locks = "cmd:all()"
|
||||
arg_regex = r"\s|$"
|
||||
|
||||
def func(self):
|
||||
"add the description"
|
||||
|
|
@ -447,6 +451,7 @@ class CmdAccess(MuxCommand):
|
|||
key = "access"
|
||||
aliases = ["groups", "hierarchy"]
|
||||
locks = "cmd:all()"
|
||||
arg_regex = r"$"
|
||||
|
||||
def func(self):
|
||||
"Load the permission groups"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue