From d1bb97f3fb3fea1bf2de6a1eacaa2cdd6baacc07 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sun, 6 Dec 2015 12:16:37 +0100 Subject: m_spanningtree Implement ServerCommand::RegisterService() --- src/modules/m_spanningtree/servercommand.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/modules/m_spanningtree/servercommand.cpp') diff --git a/src/modules/m_spanningtree/servercommand.cpp b/src/modules/m_spanningtree/servercommand.cpp index 3034eee7a..ef55cd00e 100644 --- a/src/modules/m_spanningtree/servercommand.cpp +++ b/src/modules/m_spanningtree/servercommand.cpp @@ -24,8 +24,11 @@ ServerCommand::ServerCommand(Module* Creator, const std::string& Name, unsigned int MinParams, unsigned int MaxParams) : CommandBase(Creator, Name, MinParams, MaxParams) { - this->ServiceProvider::DisableAutoRegister(); - ModuleSpanningTree* st = static_cast(Creator); +} + +void ServerCommand::RegisterService() +{ + ModuleSpanningTree* st = static_cast(static_cast(creator)); st->CmdManager.AddCommand(this); } -- cgit v1.2.3