diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-24 02:29:28 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-24 02:29:28 +0000 |
commit | 998304694552a2294018f2dd5a2babd4bdc023b4 (patch) | |
tree | 78ba46530d8da68fe3e131595889de374bec24e7 /src/modules/m_spanningtree | |
parent | 0d69fdd92c5444910860be2c03c5c259b33b1931 (diff) |
Fix ENCAP stripping, was incorrectly checking for " CHGHOST" and similar commands
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12320 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-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) { |