X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fuserinputhandler.cpp;h=7dec1dc263bddb7d527434ba8428a347b96c2d4b;hp=00aabc2a68b60f799f7976657cec0a036457fb03;hb=7eead232a26bec0861aec2de27712a85b1f0e90e;hpb=1d3457646bc3b4a82ee24947f0d2a2e56f507895 diff --git a/src/core/userinputhandler.cpp b/src/core/userinputhandler.cpp index 00aabc2a..7dec1dc2 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 {