diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-19 07:20:13 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-19 07:20:13 +0000 |
commit | 6ee5b09346cbae737493cc193443f17ff1450347 (patch) | |
tree | e2a900c36c2bb7e5c1d1df5c89b3515930db5308 | |
parent | d3b69e8098a2fd6e7bf9a96c37adcbc84f8d72aa (diff) |
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
-rw-r--r-- | src/modules/m_spanningtree.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |