diff options
| author | 2023-06-03 20:25:57 +0100 | |
|---|---|---|
| committer | 2023-06-03 20:25:57 +0100 | |
| commit | 4c7d45b55194356a6bdb9c8e6e2ce2f699e3fcd9 (patch) | |
| tree | adf7da1b00482c416757bfe6dd591057fd8fb1fc /src/modules/m_spanningtree | |
| parent | Fix 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.cpp | 4 |
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. |
