diff options
-rw-r--r-- | src/users.cpp | 6 |
1 files 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; |