1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2008 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
14 #ifndef __CMD_NICK_H__
15 #define __CMD_NICK_H__
17 // include the common header files
22 /** Handle /NICK. These command handlers can be reloaded by the core,
23 * and handle basic RFC1459 commands. Commands within modules work
24 * the same way, however, they can be fully unloaded, where these
27 class CommandNick : public Command
31 /** Constructor for nick.
33 CommandNick (InspIRCd* Instance) : Command(Instance,"NICK", 0, 1, true, 3), allowinvalid(false) { syntax = "<newnick>"; }
35 * @param parameters The parameters to the comamnd
36 * @param pcnt The number of parameters passed to teh command
37 * @param user The user issuing the command
38 * @return A value from CmdResult to indicate command success or failure.
40 CmdResult Handle(const std::vector<std::string>& parameters, User *user);
42 /** Handle internal command
43 * @param id Used to indicate if invalid nick changes are allowed.
44 * Set to 1 to allow invalid nicks and 0 to deny them.
45 * @param parameters Currently unused
47 CmdResult HandleInternal(const unsigned int id, const std::deque<classbase*> ¶meters);