diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/compat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp index 22155fd2c..d39d8e876 100644 --- a/src/modules/m_spanningtree/compat.cpp +++ b/src/modules/m_spanningtree/compat.cpp @@ -153,7 +153,7 @@ void TreeSocket::WriteLine(std::string line) if (c == std::string::npos) return; std::string::size_type d = line.find(' ', c + 1); - std::string subcmd = line.substr(c, d - c); + std::string subcmd = line.substr(c + 1, d - c - 1); Command* thiscmd = ServerInstance->Parser->GetHandler(subcmd); if (thiscmd) { |