diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-28 15:11:00 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-28 15:11:00 +0000 |
commit | 90125b5053d8a6fb4dba01ff1cd68149557a8856 (patch) | |
tree | 9a9f54f0fc3434d6bbd3022637ace34a25401748 /src | |
parent | 81e31bacbbaa7d263b71affb82225c956a88a28d (diff) |
Input queue doesnt queue empty strings any more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1240 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/connection.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/connection.cpp b/src/connection.cpp index 335a258a8..c77db382c 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -490,9 +490,12 @@ bool connection::RecvPacket(std::deque<std::string> &messages, char* recvhost) while (this->connectors[i].BufferIsComplete()) { std::string text = this->connectors[i].GetBuffer(); - messages.push_back(text.c_str()); - strlcpy(recvhost,this->connectors[i].GetServerName().c_str(),160); - log(DEBUG,"main: Connection::RecvPacket() %d:%s->%s",pushed++,recvhost,text.c_str()); + if (text != "") + { + messages.push_back(text.c_str()); + strlcpy(recvhost,this->connectors[i].GetServerName().c_str(),160); + log(DEBUG,"main: Connection::RecvPacket() %d:%s->%s",pushed++,recvhost,text.c_str()); + } } return true; } |