]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_devoice.cpp
Merge pull request #984 from Renegade334/modules-exempt-uline
[user/henk/code/inspircd.git] / src / modules / m_devoice.cpp
index e16a87336e450ee268a04f63b59d54bfc7deccc5..4e4b3a354b4efdb0bd7bf8c97584b36e61498251 100644 (file)
@@ -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);