From 93390f6ccbeeb5198217ef31a205c57e51d2dc18 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 2 Jan 2019 16:55:20 +0000 Subject: Strip message tags when talking with 1202 protocol servers. --- src/modules/m_spanningtree/compat.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp index 7cd56b71c..17bc7cbc6 100644 --- a/src/modules/m_spanningtree/compat.cpp +++ b/src/modules/m_spanningtree/compat.cpp @@ -39,6 +39,12 @@ void TreeSocket::WriteLine(const std::string& original_line) { std::string line = original_line; std::string::size_type a = line.find(' '); + if (line[0] == '@') + { + // The line contains tags which the 1202 protocol can't handle. + line.erase(0, a); + a = line.find(' '); + } std::string::size_type b = line.find(' ', a + 1); std::string command(line, a + 1, b-a-1); // now try to find a translation entry -- cgit v1.2.3