X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_devoice.cpp;h=81b319f3cc088f635c189e043ca12cc26447d136;hb=551d687ec6d7ce44be35fae0dd7345fe73c4f63a;hp=05f2d0d4828dbc43001bfac500a84b7c3c1c73ea;hpb=ac7defcd3e52695dcf5e5150e9fe3e1624205e64;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp index 05f2d0d48..81b319f3c 100644 --- a/src/modules/m_devoice.cpp +++ b/src/modules/m_devoice.cpp @@ -67,11 +67,7 @@ class ModuleDeVoice : public Module void init() { - ServerInstance->AddCommand(&cmd); - } - - virtual ~ModuleDeVoice() - { + ServerInstance->Modules->AddService(cmd); } virtual Version GetVersion()