minor fix
authorMarcus Eggenberger <egs@quassel-irc.org>
Mon, 28 Jul 2008 11:26:51 +0000 (13:26 +0200)
committerMarcus Eggenberger <egs@quassel-irc.org>
Mon, 28 Jul 2008 11:26:59 +0000 (13:26 +0200)
src/core/userinputhandler.cpp

index 00aabc2..7dec1dc 100644 (file)
@@ -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))) {
     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 {
        msg.remove(0, 1); // //asdf is transformed to /asdf
       cmd = QString("SAY");
     } else {