X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient%2Fclientuserinputhandler.cpp;h=704e835eeeab0f0c7370df89a9389f417e6fbdbd;hb=9df2a35dba2c0cb4ca8c28989b9cf776d8e2fdf8;hp=3ecf3c420d43e52577b05618036366d722771d18;hpb=55ec26e51fe25b87319116af9ef3f5e3b8ba8e49;p=quassel.git diff --git a/src/client/clientuserinputhandler.cpp b/src/client/clientuserinputhandler.cpp index 3ecf3c42..704e835e 100644 --- a/src/client/clientuserinputhandler.cpp +++ b/src/client/clientuserinputhandler.cpp @@ -65,6 +65,9 @@ void ClientUserInputHandler::handleUserInput(const BufferInfo &bufferInfo, const handleExec(clist.at(i).first, args); else { if(cmd == "JOIN" || cmd == "QUERY") { + if(args.section(' ', 0, 0).isEmpty()) { + continue; + } BufferId newBufId = Client::networkModel()->bufferId(bufferInfo.networkId(), args.section(' ', 0, 0)); if(!newBufId.isValid()) { Client::bufferModel()->switchToBufferAfterCreation(bufferInfo.networkId(), args.section(' ', 0, 0));