summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-25 02:53:34 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-25 02:53:34 +0200
commit4c04665b29cd7304717cefe49d70d881d8b38ca3 (patch)
tree63dc4835698f0e181d9d2ebacb57f402d571e79f /src/commandhandler.cpp
parent5322d978519f9d5677d2096e1167439c84b23cd1 (diff)
downloadplus-4c04665b29cd7304717cefe49d70d881d8b38ca3.tar.gz
plus-4c04665b29cd7304717cefe49d70d881d8b38ca3.tar.bz2
plus-4c04665b29cd7304717cefe49d70d881d8b38ca3.tar.xz
plus-4c04665b29cd7304717cefe49d70d881d8b38ca3.zip
Trim extra spaces from chat commands.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp2
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);