]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chgident.cpp
Make irc::sockets::* parameters consistent, add irc::sockets::mask
[user/henk/code/inspircd.git] / src / modules / m_chgident.cpp
index 34d969c0537f517313b15d44007fec190a4b8ce8..b4cea8b43e122869590468ce20ec708350e25a0e 100644 (file)
@@ -22,7 +22,8 @@ class CommandChgident : public Command
  public:
        CommandChgident(Module* Creator) : Command(Creator,"CHGIDENT", 2)
        {
-               flags_needed = 'o'; syntax = "<nick> <newident>";
+               flags_needed = 'o';
+               syntax = "<nick> <newident>";
                TRANSLATE3(TR_NICK, TR_TEXT, TR_END);
        }
 
@@ -36,12 +37,6 @@ class CommandChgident : public Command
                        return CMD_FAILURE;
                }
 
-               if (parameters[1].empty())
-               {
-                       user->WriteServ("NOTICE %s :*** CHGIDENT: Ident must be specified", user->nick.c_str());
-                       return CMD_FAILURE;
-               }
-
                if (parameters[1].length() > ServerInstance->Config->Limits.IdentMax)
                {
                        user->WriteServ("NOTICE %s :*** CHGIDENT: Ident is too long", user->nick.c_str());
@@ -80,7 +75,7 @@ class ModuleChgIdent : public Module
        CommandChgident cmd;
 
 public:
-       ModuleChgIdent(InspIRCd* Me) : Module(Me), cmd(this)
+       ModuleChgIdent() : cmd(this)
        {
                ServerInstance->AddCommand(&cmd);
        }
@@ -91,7 +86,7 @@ public:
 
        virtual Version GetVersion()
        {
-               return Version("Provides support for the CHGIDENT command", VF_OPTCOMMON | VF_VENDOR, API_VERSION);
+               return Version("Provides support for the CHGIDENT command", VF_OPTCOMMON | VF_VENDOR);
        }
 
 };