summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/servercommand.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-06 12:16:37 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-06 12:16:37 +0100
commitd1bb97f3fb3fea1bf2de6a1eacaa2cdd6baacc07 (patch)
treeaac80f5c66c730cbdceb822280086713f225d9f1 /src/modules/m_spanningtree/servercommand.cpp
parent7343ac33fbc64fd6d4426da4203530c3aef95e29 (diff)
m_spanningtree Implement ServerCommand::RegisterService()
Diffstat (limited to 'src/modules/m_spanningtree/servercommand.cpp')
-rw-r--r--src/modules/m_spanningtree/servercommand.cpp7
1 files changed, 5 insertions, 2 deletions
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<ModuleSpanningTree*>(Creator);
+}
+
+void ServerCommand::RegisterService()
+{
+ ModuleSpanningTree* st = static_cast<ModuleSpanningTree*>(static_cast<Module*>(creator));
st->CmdManager.AddCommand(this);
}