summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
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);