From f4ea51671f367d6e473049d52919a3c879329c6f Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 2 Jul 2008 14:20:38 +0000 Subject: Forward port r9946: make SVSHOLD silent to avoid useless irritation to opers git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9947 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_xmlsocket.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules/m_xmlsocket.cpp') diff --git a/src/modules/m_xmlsocket.cpp b/src/modules/m_xmlsocket.cpp index 0e29cb993..2973ed187 100644 --- a/src/modules/m_xmlsocket.cpp +++ b/src/modules/m_xmlsocket.cpp @@ -170,7 +170,10 @@ class ModuleXMLSocket : public Module if ((tmpbuffer[n] == '\r') || (tmpbuffer[n] == '\n')) tmpbuffer[n] = 0; - user->AddWriteBuf(std::string(tmpbuffer,count)); + std::string buf(tmpbuffer, count); + LineBuffer *l = new LineBuffer(buf); + l->SetRefcount(1); + user->AddWriteBuf(l); delete [] tmpbuffer; return 1; -- cgit v1.2.3