From 4c7d45b55194356a6bdb9c8e6e2ce2f699e3fcd9 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 3 Jun 2023 20:25:57 +0100 Subject: Fix rewriting commands in the 1205 compat layer. --- src/modules/m_spanningtree/compat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp index 3e0e654f6..5dd0c3d45 100644 --- a/src/modules/m_spanningtree/compat.cpp +++ b/src/modules/m_spanningtree/compat.cpp @@ -34,9 +34,9 @@ void TreeSocket::WriteLine(const std::string& original_line) size_t cmdstart = 0; if (line[0] == '@') // Skip the tags. - cmdstart = line.find(' ', cmdstart + 1); + cmdstart = line.find(' '); - if (line[0] == ':') // Skip the prefix. + if (line[cmdstart + 1] == ':') // Skip the prefix. cmdstart = line.find(' ', cmdstart + 1); // Find the end of the command. -- cgit v1.3.1-10-gc9f91