diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-02-25 02:53:34 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-02-25 02:53:34 +0200 |
commit | 4c04665b29cd7304717cefe49d70d881d8b38ca3 (patch) | |
tree | 63dc4835698f0e181d9d2ebacb57f402d571e79f | |
parent | 5322d978519f9d5677d2096e1167439c84b23cd1 (diff) | |
download | manaverse-4c04665b29cd7304717cefe49d70d881d8b38ca3.tar.gz manaverse-4c04665b29cd7304717cefe49d70d881d8b38ca3.tar.bz2 manaverse-4c04665b29cd7304717cefe49d70d881d8b38ca3.tar.xz manaverse-4c04665b29cd7304717cefe49d70d881d8b38ca3.zip |
Trim extra spaces from chat commands.
-rw-r--r-- | src/commandhandler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index 17985cde6..1d374541e 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -72,6 +72,8 @@ void CommandHandler::handleCommand(const std::string &command, ChatTab *tab) std::string args(command, pos == std::string::npos ? command.size() : pos + 1); + args = trim(args); + if (command == "closeall") { handleCloseAll(args, tab); |