aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-06-03 20:25:57 +0100
committerGravatar Sadie Powell2023-06-03 20:25:57 +0100
commit4c7d45b55194356a6bdb9c8e6e2ce2f699e3fcd9 (patch)
treeadf7da1b00482c416757bfe6dd591057fd8fb1fc /src/modules/m_spanningtree
parentFix an inverted condition in the cloak module. (diff)
Fix rewriting commands in the 1205 compat layer.
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/compat.cpp4
1 files changed, 2 insertions, 2 deletions
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.