]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_devoice.cpp
Update m_cloaking to use free-form keys instead of weakening the hash IV
[user/henk/code/inspircd.git] / src / modules / m_devoice.cpp
index 0d511886c02e3d3e51092439986a41fafd916ef3..7c2dcb3d81fb85091bf51508f90b3ad552d2cae1 100644 (file)
@@ -25,7 +25,7 @@
 class CommandDevoice : public Command
 {
  public:
-       CommandDevoice (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"DEVOICE", 0, 1)
+       CommandDevoice(Module* Creator) : Command(Creator,"DEVOICE", 1)
        {
                syntax = "<channel>";
                TRANSLATE2(TR_TEXT, TR_END);
@@ -43,7 +43,7 @@ class CommandDevoice : public Command
 
                        ServerInstance->SendMode(modes, ServerInstance->FakeClient);
                        ServerInstance->PI->SendMode(c->name, ServerInstance->Modes->GetLastParseParams(), ServerInstance->Modes->GetLastParseTranslate());
-                       return CMD_LOCALONLY;
+                       return CMD_SUCCESS;
                }
 
                return CMD_FAILURE;
@@ -54,7 +54,7 @@ class ModuleDeVoice : public Module
 {
        CommandDevoice cmd;
  public:
-       ModuleDeVoice(InspIRCd* Me) : Module(Me), cmd(Me, this)
+       ModuleDeVoice() : cmd(this)
        {
                ServerInstance->AddCommand(&cmd);
        }
@@ -65,7 +65,7 @@ class ModuleDeVoice : public Module
 
        virtual Version GetVersion()
        {
-               return Version("$Id$", VF_VENDOR, API_VERSION);
+               return Version("Provides voiced users with the ability to devoice themselves.", VF_VENDOR, API_VERSION);
        }
 };