X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_devoice.cpp;h=4e4b3a354b4efdb0bd7bf8c97584b36e61498251;hb=3ccf0065d43db80f31c6404aeac4d65551481508;hp=e16a87336e450ee268a04f63b59d54bfc7deccc5;hpb=1031f333332cf1b09db4fd632f141143ee637c34;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp index e16a87336..4e4b3a354 100644 --- a/src/modules/m_devoice.cpp +++ b/src/modules/m_devoice.cpp @@ -43,7 +43,7 @@ class CommandDevoice : public Command modes.push_back("-v"); modes.push_back(user->nick); - ServerInstance->Modes->Process(modes, ServerInstance->FakeClient); + ServerInstance->Parser.CallHandler("MODE", modes, ServerInstance->FakeClient); return CMD_SUCCESS; } }; @@ -56,11 +56,6 @@ class ModuleDeVoice : public Module { } - void init() CXX11_OVERRIDE - { - ServerInstance->Modules->AddService(cmd); - } - Version GetVersion() CXX11_OVERRIDE { return Version("Provides voiced users with the ability to devoice themselves.", VF_VENDOR);