From: Marcus Eggenberger Date: Mon, 28 Jul 2008 11:24:33 +0000 (+0200) Subject: two leading slashes are now treated as a regular message with one slah being stripped X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=d65062da8c62ef5cc39255039aa602e12ab5bee7 two leading slashes are now treated as a regular message with one slah being stripped --- diff --git a/src/core/userinputhandler.cpp b/src/core/userinputhandler.cpp index 0e096a3c..307cc7fc 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();