From 4a7e332f4188931ddce37bb9ba04f7bbbb189fa6 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 12 Apr 2014 15:01:42 +0200 Subject: [PATCH] Added arg_regex check to unloggedin create command to avoid merging mis-spells of create with the argument. --- src/commands/default/unloggedin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/default/unloggedin.py b/src/commands/default/unloggedin.py index 9173194ef8..69f60a19ad 100644 --- a/src/commands/default/unloggedin.py +++ b/src/commands/default/unloggedin.py @@ -43,6 +43,7 @@ class CmdUnconnectedConnect(MuxCommand): key = "connect" aliases = ["conn", "con", "co"] locks = "cmd:all()" # not really needed + arg_regex = r"\s.*?|$" def func(self): """ @@ -116,6 +117,7 @@ class CmdUnconnectedCreate(MuxCommand): key = "create" aliases = ["cre", "cr"] locks = "cmd:all()" + arg_regex = r"\s.*?|$" def func(self): "Do checks and create account"