From 6e9cea230cfe2dac801b566d796d24fad4d5bd6a Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 12 Mar 2006 02:27:38 +0000 Subject: Adding to the buffer was clearing it first, reverting the buffering to a pre-alpha-6 kind of way of doing stuff (erk) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3689 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/users.cpp b/src/users.cpp index c7f74da0b..aeddebef0 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -311,9 +311,7 @@ bool userrec::AddBuffer(const std::string &a) if ((*i != '\r') && (*i != '\0') && (*i != 7)) b = b + *i; } - std::stringstream stream(recvq); - stream << b; - recvq = stream.str(); + recvq.append(b); unsigned int i = 0; // count the size of the first line in the buffer. while (i < recvq.length()) @@ -356,7 +354,7 @@ std::string userrec::GetBuffer() ret = ret + *line; line++; } - if ((*line == '\n') || (*line == '\r')) + while ((*line == '\n') || (*line == '\r')) line++; recvq = line; return ret; -- cgit v1.2.3