X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcommands%2Fcmd_reloadmodule.h;h=df221952ec15c2535f55b62af1e001193182762c;hb=9183ebd28c79b12ddf29b3847f59679e480af70a;hp=358858821716714c2044f88bcab16e4ea6736127;hpb=af2b10e82cd3b9cda80ae29607da78e15974f155;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/commands/cmd_reloadmodule.h b/include/commands/cmd_reloadmodule.h index 358858821..df221952e 100644 --- a/include/commands/cmd_reloadmodule.h +++ b/include/commands/cmd_reloadmodule.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. * * --------------------------------------------------- */ @@ -22,13 +19,24 @@ #include "users.h" #include "channels.h" -/** Handle /RELOADMODULE +/** Handle /RELOADMODULE. 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_reloadmodule : public command_t +class CommandReloadmodule : public Command { public: - cmd_reloadmodule (InspIRCd* Instance) : command_t(Instance,"RELOADMODULE",'o',1) { syntax = ""; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + /** Constructor for reloadmodule. + */ + CommandReloadmodule (InspIRCd* Instance) : Command(Instance,"RELOADMODULE","o",1) { 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