aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/compat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spanningtree/compat.cpp')
-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.