]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_devoice.cpp
Remove the -Dssize_t declaration now its typedeffed.
[user/henk/code/inspircd.git] / src / modules / m_devoice.cpp
index 0e6f68480d295ef1a98c56f05f0a26f8dcf5f58e..7c2dcb3d81fb85091bf51508f90b3ad552d2cae1 100644 (file)
@@ -25,9 +25,8 @@
 class CommandDevoice : public Command
 {
  public:
-       CommandDevoice (InspIRCd* Instance) : Command(Instance,"DEVOICE", 0, 1)
+       CommandDevoice(Module* Creator) : Command(Creator,"DEVOICE", 1)
        {
-               this->source = "m_devoice.so";
                syntax = "<channel>";
                TRANSLATE2(TR_TEXT, TR_END);
        }
@@ -44,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;
@@ -55,7 +54,7 @@ class ModuleDeVoice : public Module
 {
        CommandDevoice cmd;
  public:
-       ModuleDeVoice(InspIRCd* Me) : Module(Me), cmd(Me)
+       ModuleDeVoice() : cmd(this)
        {
                ServerInstance->AddCommand(&cmd);
        }
@@ -66,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);
        }
 };