aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/CommandRegistry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/CommandRegistry.cc')
-rw-r--r--src/FbTk/CommandRegistry.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/FbTk/CommandRegistry.cc b/src/FbTk/CommandRegistry.cc
index 1d16c75..fc40920 100644
--- a/src/FbTk/CommandRegistry.cc
+++ b/src/FbTk/CommandRegistry.cc
@@ -53,6 +53,8 @@ Command *CommandRegistry::parseLine(const string &line, bool trusted) const {
53 // parse args and command 53 // parse args and command
54 string command, args; 54 string command, args;
55 StringUtil::getFirstWord(line, command, args); 55 StringUtil::getFirstWord(line, command, args);
56 StringUtil::removeFirstWhitespace(args);
57 StringUtil::removeTrailingWhitespace(args);
56 58
57 // now we have parsed command and args 59 // now we have parsed command and args
58 command = StringUtil::toLower(command); 60 command = StringUtil::toLower(command);
@@ -63,6 +65,8 @@ BoolCommand *CommandRegistry::parseBoolLine(const string &line, bool trusted) co
63 // parse args and command 65 // parse args and command
64 string command, args; 66 string command, args;
65 StringUtil::getFirstWord(line, command, args); 67 StringUtil::getFirstWord(line, command, args);
68 StringUtil::removeFirstWhitespace(args);
69 StringUtil::removeTrailingWhitespace(args);
66 70
67 // now we have parsed command and args 71 // now we have parsed command and args
68 command = StringUtil::toLower(command); 72 command = StringUtil::toLower(command);