X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_sethost.cpp;h=730909d6cc74f2d1b2af8b7ecfa22761ac706010;hb=e6d000042ea75d4e0485bec9564b47163a3ca414;hp=0719bd648812245e7759bb5aac3bbb36fce99fd8;hpb=ee6208dc8f5bb806eca36e230ca5bbb6d5a45f60;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index 0719bd648..730909d6c 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -12,9 +12,6 @@ */ #include "inspircd.h" -#include "users.h" -#include "channels.h" -#include "modules.h" /* $ModDesc: Provides support for the SETHOST command */ @@ -29,6 +26,7 @@ class cmd_sethost : public command_t { this->source = "m_sethost.so"; syntax = ""; + TRANSLATE2(TR_TEXT, TR_END); } CmdResult Handle (const char** parameters, int pcnt, userrec *user) @@ -38,13 +36,13 @@ class cmd_sethost : public command_t { if (!hostmap[(unsigned char)*x]) { - user->WriteServ("NOTICE "+std::string(user->nick)+" :*** Invalid characters in hostname"); + user->WriteServ("NOTICE "+std::string(user->nick)+" :*** SETHOST: Invalid characters in hostname"); return CMD_FAILURE; } } if (len == 0) { - user->WriteServ("NOTICE %s :*** SETHOST: Host too short", user->nick); + user->WriteServ("NOTICE %s :*** SETHOST: Host must be specified", user->nick); return CMD_FAILURE; } if (len > 64) @@ -100,9 +98,9 @@ class ModuleSetHost : public Module virtual Version GetVersion() { - return Version(1,1,0,1,VF_VENDOR,API_VERSION); + return Version(1, 1, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION); } }; -MODULE_INIT(ModuleSetHost); +MODULE_INIT(ModuleSetHost)