X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_satopic.cpp;h=c15c9e91bcb4e2e911e509c108f36b5d3240fc21;hb=c775be0c827ccab77559f6ef79a54a73a3abde15;hp=a0e3319af25d95d44e7df7e1143748b07823c1af;hpb=2ab2de1dda8f2043898b9df8004ba5b6c4df7349;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_satopic.cpp b/src/modules/m_satopic.cpp index a0e3319af..c15c9e91b 100644 --- a/src/modules/m_satopic.cpp +++ b/src/modules/m_satopic.cpp @@ -63,14 +63,14 @@ class ModuleSATopic : public Module ModuleSATopic() : cmd(this) { - ServerInstance->AddCommand(&cmd); } - virtual ~ModuleSATopic() + void init() CXX11_OVERRIDE { + ServerInstance->Modules->AddService(cmd); } - virtual Version GetVersion() + Version GetVersion() CXX11_OVERRIDE { return Version("Provides a SATOPIC command", VF_VENDOR); }