X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_xmlsocket.cpp;h=cc14dee97660ccb8f5ee1d72d295a9d1f0430b23;hb=2df56b811b362dbf5a05a0bc7b0eee5ee4d77a40;hp=2973ed187c2e8de0c9b1f5adfcf99f4ae159e3ae;hpb=f4ea51671f367d6e473049d52919a3c879329c6f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_xmlsocket.cpp b/src/modules/m_xmlsocket.cpp index 2973ed187..cc14dee97 100644 --- a/src/modules/m_xmlsocket.cpp +++ b/src/modules/m_xmlsocket.cpp @@ -109,7 +109,7 @@ class ModuleXMLSocket : public Module virtual Version GetVersion() { - return Version(1, 2, 0, 0, VF_VENDOR, API_VERSION); + return Version("$Id$", VF_VENDOR, API_VERSION); } virtual void OnHookUserIO(User* user, const std::string &targetip) @@ -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;