X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_devoice.cpp;h=64c341ad6acfe8fc2b314f7b2918650ff26c4fbb;hb=2b3394855d5adddb16285b905503d9ffe5a1d963;hp=e2ada413b960b143ce1b5ca2cc771184345ddfd9;hpb=2b8ce39c6ea5e7a22fe39b21756f82051465f143;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp index e2ada413b..64c341ad6 100644 --- a/src/modules/m_devoice.cpp +++ b/src/modules/m_devoice.cpp @@ -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 = ""; + 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); } };