From 998304694552a2294018f2dd5a2babd4bdc023b4 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 24 Jan 2010 02:29:28 +0000 Subject: 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 --- src/modules/m_spanningtree/compat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3