]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Adding to the buffer was clearing it first, reverting the buffering to a pre-alpha...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 12 Mar 2006 02:27:38 +0000 (02:27 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 12 Mar 2006 02:27:38 +0000 (02:27 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3689 e03df62e-2008-0410-955e-edbf42e46eb7

src/users.cpp

index c7f74da0b95b0ac8f2ee0cd374778984adc5a23a..aeddebef008325a2bcd006158b5215f5ae6d9f0f 100644 (file)
@@ -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;