]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setident.cpp
Fix potential for duplicate SID if the SID is auto generated.
[user/henk/code/inspircd.git] / src / modules / m_setident.cpp
index 3f33061cdd6c4ebc1f5d97ccb2fb392b4ff86b8a..a353f883c77b66a480815b6b8e3bd8b6fee84b95 100644 (file)
@@ -12,8 +12,6 @@
  */
 
 #include "inspircd.h"
-#include "users.h"
-#include "modules.h"
 
 /* $ModDesc: Provides support for the SETIDENT command */
 
@@ -26,6 +24,7 @@ class cmd_setident : public command_t
        {
                this->source = "m_setident.so";
                syntax = "<new-ident>";
+               TRANSLATE2(TR_TEXT, TR_END);
        }
 
        CmdResult Handle(const char** parameters, int pcnt, userrec *user)
@@ -74,7 +73,7 @@ class ModuleSetIdent : 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);
        }
        
 };