From b2723d2577b124d5a3ed188b01136a3eae9e9343 Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 2 Jul 2008 14:22:48 +0000 Subject: Back out the incomplete linebuffering stuff that shouldn't have been committed.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9948 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_xmlsocket.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/modules/m_xmlsocket.cpp') diff --git a/src/modules/m_xmlsocket.cpp b/src/modules/m_xmlsocket.cpp index 2973ed187..0e29cb993 100644 --- a/src/modules/m_xmlsocket.cpp +++ b/src/modules/m_xmlsocket.cpp @@ -170,10 +170,7 @@ class ModuleXMLSocket : public Module if ((tmpbuffer[n] == '\r') || (tmpbuffer[n] == '\n')) tmpbuffer[n] = 0; - std::string buf(tmpbuffer, count); - LineBuffer *l = new LineBuffer(buf); - l->SetRefcount(1); - user->AddWriteBuf(l); + user->AddWriteBuf(std::string(tmpbuffer,count)); delete [] tmpbuffer; return 1; -- cgit v1.3.1-10-gc9f91