summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/compat.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-21 17:16:28 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-21 17:16:28 +0000
commit4f6589e123c0a494287f59e3bc75e34ed6e4f6d7 (patch)
treeec62ee40c30c95cba9505d33df0dc25ab684f766 /src/modules/m_spanningtree/compat.cpp
parente2af2347fc035d702e45f12e772223a8d578410d (diff)
Don't try to write to dead users, add debug to SquitServer, and remove a string copy in spanningtree write
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11753 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/compat.cpp')
-rw-r--r--src/modules/m_spanningtree/compat.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp
index 71272edec..94c797bfd 100644
--- a/src/modules/m_spanningtree/compat.cpp
+++ b/src/modules/m_spanningtree/compat.cpp
@@ -27,6 +27,8 @@ static const char* const forge_common_1201[] = {
"m_setident.so",
};
+static std::string wide_newline("\r\n");
+
void TreeSocket::CompatAddModules(std::vector<std::string>& modlist)
{
if (proto_version < 1202)
@@ -81,8 +83,8 @@ void TreeSocket::WriteLine(std::string line)
}
ServerInstance->Logs->Log("m_spanningtree",DEBUG, "S[%d] O %s", this->GetFd(), line.c_str());
- line.append("\r\n");
this->WriteData(line);
+ this->WriteData(wide_newline);
}