- cmd_nick () : command_t("NICK",0,1) { }
- void Handle(char **parameters, int pcnt, userrec *user);
+ /** Constructor for nick.
+ */
+ CommandNick (InspIRCd* Instance) : Command(Instance,"NICK", 0, 1, true, 3), allowinvalid(false) { syntax = "<newnick>"; }
+ /** Handle command.
+ * @param parameters The parameters to the comamnd
+ * @param pcnt The number of parameters passed to teh command
+ * @param user The user issuing the command
+ * @return A value from CmdResult to indicate command success or failure.
+ */
+ CmdResult Handle(const std::vector<std::string>& parameters, User *user);
+
+ /** Handle internal command
+ * @param id Used to indicate if invalid nick changes are allowed.
+ * Set to 1 to allow invalid nicks and 0 to deny them.
+ * @param parameters Currently unused
+ */
+ CmdResult HandleInternal(const unsigned int id, const std::deque<classbase*> ¶meters);