From 5c20fd57ec1913dc787b7c620bb4032851dd0d64 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Fri, 19 Oct 2012 02:09:30 +0200 Subject: Remove usage of deprecated CallCommandHandler() and IsValidModuleCommand() --- src/modules/m_spanningtree/postcommand.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_spanningtree/postcommand.cpp') 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); -- cgit v1.3.1-10-gc9f91