X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_devoice.cpp;h=3405794662eb5b8efccfe8895f401c1496d6f302;hb=4ab1c43c1eee708fc50a4808f714a731891b75e8;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..340579466 100644 --- a/src/modules/m_devoice.cpp +++ b/src/modules/m_devoice.cpp @@ -65,16 +65,12 @@ class ModuleDeVoice : public Module { } - void init() + void init() CXX11_OVERRIDE { - ServerInstance->AddCommand(&cmd); + ServerInstance->Modules->AddService(cmd); } - virtual ~ModuleDeVoice() - { - } - - virtual Version GetVersion() + Version GetVersion() CXX11_OVERRIDE { return Version("Provides voiced users with the ability to devoice themselves.", VF_VENDOR); }