diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-10-19 02:09:30 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-11-19 18:32:39 +0100 |
commit | 5c20fd57ec1913dc787b7c620bb4032851dd0d64 (patch) | |
tree | fb675039a80f3f30e2657612c7a0807b7cb31932 /src/modules/m_spanningtree | |
parent | 81d7a5b538737cd568c30e158b408721ef1824c2 (diff) |
Remove usage of deprecated CallCommandHandler() and IsValidModuleCommand()
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/encap.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/postcommand.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/encap.cpp b/src/modules/m_spanningtree/encap.cpp index 0cc293fa5..dabfc086b 100644 --- a/src/modules/m_spanningtree/encap.cpp +++ b/src/modules/m_spanningtree/encap.cpp @@ -32,7 +32,7 @@ void TreeSocket::Encap(User* who, parameterlist ¶ms) if (ServerInstance->Config->GetSID() == params[0] || InspIRCd::Match(ServerInstance->Config->ServerName, params[0])) { parameterlist plist(params.begin() + 2, params.end()); - ServerInstance->CallCommandHandler(params[1].c_str(), plist, who); + ServerInstance->Parser->CallHandler(params[1], plist, who); // discard return value, ENCAP shall succeed even if the command does not exist } diff --git a/src/modules/m_spanningtree/postcommand.cpp b/src/modules/m_spanningtree/postcommand.cpp index b08f60925..471bbfcb9 100644 --- a/src/modules/m_spanningtree/postcommand.cpp +++ b/src/modules/m_spanningtree/postcommand.cpp @@ -39,10 +39,10 @@ void ModuleSpanningTree::OnPostCommand(const std::string &command, const std::ve void SpanningTreeUtilities::RouteCommand(TreeServer* origin, const std::string &command, const parameterlist& parameters, User *user) { - if (!ServerInstance->IsValidModuleCommand(command, parameters.size(), user)) + if (!ServerInstance->Parser->IsValidCommand(command, parameters.size(), user)) return; - /* We know it's non-null because IsValidModuleCommand returned true */ + /* We know it's non-null because IsValidCommand returned true */ Command* thiscmd = ServerInstance->Parser->GetHandler(command); RouteDescriptor routing = thiscmd->GetRouting(user, parameters); |