From 4c04665b29cd7304717cefe49d70d881d8b38ca3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Feb 2011 02:53:34 +0200 Subject: Trim extra spaces from chat commands. --- src/commandhandler.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/commandhandler.cpp') 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); -- cgit v1.2.3-60-g2f50