Cleanup arg_regex for general commands.

This commit is contained in:
Ahmed Charles 2015-02-10 17:37:26 +00:00
parent 7e7cd9211f
commit ac73b82db9

View file

@ -26,6 +26,7 @@ class CmdHome(MuxCommand):
key = "home" key = "home"
locks = "cmd:perm(home) or perm(Builders)" locks = "cmd:perm(home) or perm(Builders)"
arg_regex = r"$"
def func(self): def func(self):
"Implement the command" "Implement the command"
@ -53,7 +54,7 @@ class CmdLook(MuxCommand):
key = "look" key = "look"
aliases = ["l", "ls"] aliases = ["l", "ls"]
locks = "cmd:all()" locks = "cmd:all()"
arg_regex = r"\s.*?|$" arg_regex = r"\s|$"
def func(self): def func(self):
""" """
@ -216,6 +217,7 @@ class CmdGet(MuxCommand):
key = "get" key = "get"
aliases = "grab" aliases = "grab"
locks = "cmd:all()" locks = "cmd:all()"
arg_regex = r"\s|$"
def func(self): def func(self):
"implements the command." "implements the command."
@ -305,6 +307,7 @@ class CmdGive(MuxCommand):
""" """
key = "give" key = "give"
locks = "cmd:all()" locks = "cmd:all()"
arg_regex = r"\s|$"
def func(self): def func(self):
"Implement give" "Implement give"
@ -342,6 +345,7 @@ class CmdDesc(MuxCommand):
""" """
key = "desc" key = "desc"
locks = "cmd:all()" locks = "cmd:all()"
arg_regex = r"\s|$"
def func(self): def func(self):
"add the description" "add the description"
@ -447,6 +451,7 @@ class CmdAccess(MuxCommand):
key = "access" key = "access"
aliases = ["groups", "hierarchy"] aliases = ["groups", "hierarchy"]
locks = "cmd:all()" locks = "cmd:all()"
arg_regex = r"$"
def func(self): def func(self):
"Load the permission groups" "Load the permission groups"