From 78012c5230241d741accda4873a33f3f9dc2637c Mon Sep 17 00:00:00 2001 From: Marcus Eggenberger Date: Mon, 28 Jul 2008 13:26:51 +0200 Subject: [PATCH] minor fix --- src/core/userinputhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/userinputhandler.cpp b/src/core/userinputhandler.cpp index 307cc7fc..1d33de14 100644 --- a/src/core/userinputhandler.cpp +++ b/src/core/userinputhandler.cpp @@ -41,7 +41,7 @@ void UserInputHandler::handleUserInput(const BufferInfo &bufferInfo, const QStri int secondSlashPos = msg.indexOf('/', 1); int firstSpacePos = msg.indexOf(' '); if(!msg.startsWith('/') || (secondSlashPos != -1 && (secondSlashPos < firstSpacePos || firstSpacePos == -1))) { - if(secondSlashPos == 1) + if(msg.startsWith("//")) msg.remove(0, 1); // //asdf is transformed to /asdf cmd = QString("SAY"); } else { -- 2.20.1