summaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection.cpp')
-rw-r--r--src/connection.cpp9
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;
}