]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chgident.cpp
Fix some valgrind warnings
[user/henk/code/inspircd.git] / src / modules / m_chgident.cpp
index d5269105434fa9b2c5ca419d5c2961d4c672d9e7..135b26446d973a36c7f3391d40b26f155e258895 100644 (file)
@@ -20,9 +20,9 @@
 class CommandChgident : public Command
 {
  public:
-       CommandChgident (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"CHGIDENT", "o", 2)
+       CommandChgident(Module* Creator) : Command(Creator,"CHGIDENT", 2)
        {
-               syntax = "<nick> <newident>";
+               flags_needed = 'o'; syntax = "<nick> <newident>";
                TRANSLATE3(TR_NICK, TR_TEXT, TR_END);
        }
 
@@ -80,7 +80,7 @@ class ModuleChgIdent : public Module
        CommandChgident cmd;
 
 public:
-       ModuleChgIdent(InspIRCd* Me) : Module(Me), cmd(Me, this)
+       ModuleChgIdent() : cmd(this)
        {
                ServerInstance->AddCommand(&cmd);
        }
@@ -91,7 +91,7 @@ public:
 
        virtual Version GetVersion()
        {
-               return Version("$Id$", VF_OPTCOMMON | VF_VENDOR, API_VERSION);
+               return Version("Provides support for the CHGIDENT command", VF_OPTCOMMON | VF_VENDOR, API_VERSION);
        }
 
 };