From 6ee5b09346cbae737493cc193443f17ff1450347 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 19 Oct 2006 07:20:13 +0000 Subject: Improve WriteLine, this should be quite an improvement as it prevents a temporary allocation and deallocation for every call to Write() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5498 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index e4424a1b0..71761000b 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -2135,7 +2135,8 @@ class TreeSocket : public InspSocket to64frombits((unsigned char*)result64,(unsigned char*)result,ll); line = result64; } - return this->Write(line + "\r\n"); + line.append("\r\n"); + return this->Write(line); } /* Handle ERROR command */ -- cgit v1.2.3