summaryrefslogtreecommitdiff
path: root/src/modules/m_xmlsocket.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-02 14:22:48 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-02 14:22:48 +0000
commitb2723d2577b124d5a3ed188b01136a3eae9e9343 (patch)
tree07b8249f44d387bb9be01db77adb155a12b5c455 /src/modules/m_xmlsocket.cpp
parentf4ea51671f367d6e473049d52919a3c879329c6f (diff)
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
Diffstat (limited to 'src/modules/m_xmlsocket.cpp')
-rw-r--r--src/modules/m_xmlsocket.cpp5
1 files changed, 1 insertions, 4 deletions
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;