X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcommands%2Fcmd_gline.h;h=3a398995f13240d5624f7431d593b89b891271be;hb=b57c7f4e466f72fdd2ac3deca42caa1ea7748338;hp=79552a27433e5d9b999b959f136773e4be711c8f;hpb=dc8f5d02f77aeabefaefe88005b99c8b47030ab7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/commands/cmd_gline.h b/include/commands/cmd_gline.h index 79552a274..3a398995f 100644 --- a/include/commands/cmd_gline.h +++ b/include/commands/cmd_gline.h @@ -2,14 +2,11 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * + * InspIRCd: (C) 2002-2007 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. * * --------------------------------------------------- */ @@ -17,22 +14,29 @@ #ifndef __CMD_GLINE_H__ #define __CMD_GLINE_H__ -// include the common header files +// include the common header file -#include -#include -#include -#include -#include -#include #include "users.h" #include "channels.h" -class cmd_gline : public command_t +/** Handle /GLINE. 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_gline : public Command { public: - cmd_gline () : command_t("GLINE",'o',1) { syntax = " [ :]"; } - void Handle(const char** parameters, int pcnt, userrec *user); + /** Constructor for gline. + */ + cmd_gline (InspIRCd* Instance) : Command(Instance,"GLINE",'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 char** parameters, int pcnt, User *user); }; #endif