summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-12 02:27:38 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-12 02:27:38 +0000
commit6e9cea230cfe2dac801b566d796d24fad4d5bd6a (patch)
tree9ae3b7d9af9f27be555845bbc0721a52887770e8 /src
parenta7e24c5ddc64f6f176804351b441651081db87ae (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp6
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;