summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-03-20 18:25:17 +0000
committerPeter Powell <petpow@saberuk.com>2019-03-20 18:25:17 +0000
commit9b732cb49dcd1b8d28881236f5afb93e47f19b94 (patch)
tree8d55cb21bba5c23da2dc3eebc2d1c2f745309346
parent1645bbc231814dfa5311efb340c7a0cf6271d103 (diff)
Strip message tags correctly in the 1202 spanningtree compat layer.
-rw-r--r--src/modules/m_spanningtree/compat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp
index 17b44f896..694b28d87 100644
--- a/src/modules/m_spanningtree/compat.cpp
+++ b/src/modules/m_spanningtree/compat.cpp
@@ -42,7 +42,7 @@ void TreeSocket::WriteLine(const std::string& original_line)
if (line[0] == '@')
{
// The line contains tags which the 1202 protocol can't handle.
- line.erase(0, a);
+ line.erase(0, a + 1);
a = line.find(' ');
}
std::string::size_type b = line.find(' ', a + 1);