]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_devoice.cpp
Add a metric assload of TRANSLATE macros to modules.
[user/henk/code/inspircd.git] / src / modules / m_devoice.cpp
index e2ada413b960b143ce1b5ca2cc771184345ddfd9..64c341ad6acfe8fc2b314f7b2918650ff26c4fbb 100644 (file)
@@ -19,9 +19,6 @@
 /* $ModDesc: Provides voiced users with the ability to devoice themselves. */
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 
 /** Handle /DEVOICE
  */
@@ -32,6 +29,7 @@ class cmd_devoice : public command_t
        {
                this->source = "m_devoice.so";
                syntax = "<channel>";
+               TRANSLATE2(TR_TEXT, TR_END);
        }
 
        CmdResult Handle (const char** parameters, int pcnt, userrec *user)
@@ -49,7 +47,7 @@ class cmd_devoice : public command_t
                        ServerInstance->SendMode(modes,3,n);
                        delete n;
 
-                       /* route it */
+                       /* route it -- SendMode doesn't distribute over the whole network */
                        return CMD_SUCCESS;
                }
 
@@ -74,7 +72,7 @@ class ModuleDeVoice : public Module
 
        virtual Version GetVersion()
        {
-               return Version(1, 1, 0, 0, VF_VENDOR, API_VERSION);
+               return Version(1, 1, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION);
        }
 };