From 1d3457646bc3b4a82ee24947f0d2a2e56f507895 Mon Sep 17 00:00:00 2001 From: Marcus Eggenberger Date: Mon, 28 Jul 2008 13:24:33 +0200 Subject: [PATCH] two leading slashes are now treated as a regular message with one slah being stripped --- src/core/userinputhandler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/userinputhandler.cpp b/src/core/userinputhandler.cpp index 0c2c042a..00aabc2a 100644 --- a/src/core/userinputhandler.cpp +++ b/src/core/userinputhandler.cpp @@ -41,6 +41,8 @@ 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) + msg.remove(0, 1); // //asdf is transformed to /asdf cmd = QString("SAY"); } else { cmd = msg.section(' ', 0, 0).remove(0, 1).toUpper(); -- 2.20.1