X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcommands%2Fcmd_rules.h;h=c47a7839cc81a60956780ac63d2dcea9b4780fd6;hb=798983e2512aadc0c078e86b12aa060d6a3287ad;hp=f251d8ced49ab13768285672c01a88238cf458f4;hpb=af2b10e82cd3b9cda80ae29607da78e15974f155;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/commands/cmd_rules.h b/include/commands/cmd_rules.h index f251d8ced..c47a7839c 100644 --- a/include/commands/cmd_rules.h +++ b/include/commands/cmd_rules.h @@ -2,14 +2,11 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * InspIRCd: (C) 2002-2008 InspIRCd Development Team + * See: http://www.inspircd.org/wiki/index.php/Credits * - * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -25,13 +22,24 @@ #include "users.h" #include "channels.h" -/** Handle /RULES +/** Handle /RULES. These command handlers can be reloaded by the core, + * and handle basic RFC1459 commands. Commands within modules work + * the same way, however, they can be fully unloaded, where these + * may not. */ -class cmd_rules : public command_t +class CommandRules : public Command { public: - cmd_rules (InspIRCd* Instance) : command_t(Instance,"RULES",0,0) { syntax = "[]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + /** Constructor for rules. + */ + CommandRules (InspIRCd* Instance) : Command(Instance,"RULES",0,0) { 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 std::vector& parameters, User *user); }; #endif