diff options
Diffstat (limited to 'src/modules/m_spanningtree/compat.cpp')
-rw-r--r-- | src/modules/m_spanningtree/compat.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp index b00992eca..625a2611e 100644 --- a/src/modules/m_spanningtree/compat.cpp +++ b/src/modules/m_spanningtree/compat.cpp @@ -30,6 +30,7 @@ static const char* const forge_common_1201[] = { }; static std::string wide_newline("\r\n"); +static std::string newline("\n"); void TreeSocket::CompatAddModules(std::vector<std::string>& modlist) { @@ -122,5 +123,8 @@ void TreeSocket::WriteLine(std::string line) ServerInstance->Logs->Log("m_spanningtree",DEBUG, "S[%d] O %s", this->GetFd(), line.c_str()); this->WriteData(line); - this->WriteData(wide_newline); + if (proto_version < 1202) + this->WriteData(wide_newline); + else + this->WriteData(newline); } |