From: Johannes Huber Date: Thu, 22 Apr 2010 18:56:22 +0000 (+0200) Subject: check empty args for cmds join+query, fixes #831 X-Git-Tag: 0.6.2~24 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;h=9df2a35dba2c0cb4ca8c28989b9cf776d8e2fdf8;p=quassel.git check empty args for cmds join+query, fixes #831 --- 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));