projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
55ec26e
)
check empty args for cmds join+query, fixes #831
author
Johannes Huber
<johu@gmx.de>
Thu, 22 Apr 2010 18:56:22 +0000
(20:56 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Sat, 1 May 2010 16:58:49 +0000
(18:58 +0200)
src/client/clientuserinputhandler.cpp
patch
|
blob
|
history
diff --git
a/src/client/clientuserinputhandler.cpp
b/src/client/clientuserinputhandler.cpp
index
3ecf3c4
..
704e835
100644
(file)
--- 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));