]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chgident.cpp
Reset the already_sent IDs during slow garbage collection
[user/henk/code/inspircd.git] / src / modules / m_chgident.cpp
index 135b26446d973a36c7f3391d40b26f155e258895..95bf84e9ac873958b275a827fd8e470ef56f4255 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -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());
@@ -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);
        }
 
 };