]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/servercommand.cpp
core_hostname_lookup: find answer record of the correct type instead of assuming...
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / servercommand.cpp
index 3034eee7aeda8619bd7deeea507ae6742bb8a544..ef55cd00ef04aedaa38c0725197ab0b32e53919b 100644 (file)
 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);
 }