X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcommands%2Fcmd_nick.h;h=18c65b5871cd96f12a3da17cc8075e39586a89fe;hb=50fb079808cf6ff76fb8213c3469e435774ae42f;hp=849b59c224f8ed5c94de75ad647e8a29a22c7792;hpb=694e307c09334c21aaf1a6c3f0b7b6d95440dd3e;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/commands/cmd_nick.h b/include/commands/cmd_nick.h index 849b59c22..18c65b587 100644 --- a/include/commands/cmd_nick.h +++ b/include/commands/cmd_nick.h @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * InspIRCd: (C) 2002-2008 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -24,20 +24,20 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class cmd_nick : public Command +class CommandNick : public Command { bool allowinvalid; public: /** Constructor for nick. */ - cmd_nick (InspIRCd* Instance) : Command(Instance,"NICK",0,1,true), allowinvalid(false) { syntax = ""; } + CommandNick (InspIRCd* Instance) : Command(Instance,"NICK", 0, 1, true, 3), allowinvalid(false) { syntax = ""; } /** 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 char** parameters, int pcnt, userrec *user); + CmdResult Handle(const std::vector& parameters, User *user); /** Handle internal command * @param id Used to indicate if invalid nick changes are allowed.