X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcommands%2Fcmd_motd.h;h=b57d851d9d75ad8af86012e453ddf3847d772bdc;hb=c29175d8064b3428685da1155704b6c54c116b94;hp=310627ab121bdabd9c0d3f99d13cce5d94f0768a;hpb=d54fd9b1e6b31f69332a9241b5f17330c0ad61e0;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/commands/cmd_motd.h b/include/commands/cmd_motd.h index 310627ab1..b57d851d9 100644 --- a/include/commands/cmd_motd.h +++ b/include/commands/cmd_motd.h @@ -2,14 +2,11 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * + * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * See: http://wiki.inspircd.org/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,11 +22,24 @@ #include "users.h" #include "channels.h" -class cmd_motd : public command_t +/** Handle /MOTD. 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 CommandMotd : public Command { public: - cmd_motd (InspIRCd* Instance) : command_t(Instance,"MOTD",0,0) { syntax = "[]"; } - void Handle(const char** parameters, int pcnt, userrec *user); + /** Constructor for motd. + */ + CommandMotd (InspIRCd* Instance) : Command(Instance,NULL,"MOTD",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