]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sethost.cpp
Fix potential for duplicate SID if the SID is auto generated.
[user/henk/code/inspircd.git] / src / modules / m_sethost.cpp
index ff7d0c4dadb6170a3ff0b4a0fc99b73da23df830..730909d6cc74f2d1b2af8b7ecfa22761ac706010 100644 (file)
@@ -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 = "<new-hostname>";
+               TRANSLATE2(TR_TEXT, TR_END);
        }
 
        CmdResult Handle (const char** parameters, int pcnt, userrec *user)
@@ -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)