From 90125b5053d8a6fb4dba01ff1cd68149557a8856 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 28 Apr 2005 15:11:00 +0000 Subject: Input queue doesnt queue empty strings any more git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1240 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/connection.cpp | 9 ++++++--- 1 file 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 &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; } -- cgit v1.2.3