X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_info.cpp;h=f239b9f78aae722c6b1489e2607ec23de2929eaa;hb=9aa6c07d92fb9c1132f06b8c5781d77ee7086edb;hp=91f8eef19af8eb61cf117b5c19eb6ecdb1539867;hpb=9e5c8d4ffe7ac037a862af1e095c0f387486a5c2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_info.cpp b/src/commands/cmd_info.cpp index 91f8eef19..f239b9f78 100644 --- a/src/commands/cmd_info.cpp +++ b/src/commands/cmd_info.cpp @@ -2,8 +2,8 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. @@ -12,12 +12,37 @@ */ #include "inspircd.h" -#include "commands/cmd_info.h" -extern "C" DllExport Command* init_command(InspIRCd* Instance) +#ifndef __CMD_INFO_H__ +#define __CMD_INFO_H__ + +// include the common header files + +#include "users.h" +#include "channels.h" + +/** Handle /INFO. 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 CommandInfo : public Command { - return new CommandInfo(Instance); -} + public: + /** Constructor for info. + */ + CommandInfo ( Module* parent) : Command(parent,"INFO",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 + /** Handle /INFO */ @@ -32,29 +57,35 @@ CmdResult CommandInfo::Handle (const std::vector&, User *user) user->WriteNumeric(RPL_INFO, "%s : Robin Burchell, w00t, ", user->nick.c_str()); user->WriteNumeric(RPL_INFO, "%s : Oliver Lupton, Om, ", user->nick.c_str()); user->WriteNumeric(RPL_INFO, "%s : John Brooks, Special, ", user->nick.c_str()); - user->WriteNumeric(RPL_INFO, "%s : Pippijn van Steenhoven, pippijn, ", user->nick.c_str()); user->WriteNumeric(RPL_INFO, "%s : Dennis Friis, peavey, ", user->nick.c_str()); user->WriteNumeric(RPL_INFO, "%s : Thomas Stagner, aquanight, ", user->nick.c_str()); - user->WriteNumeric(RPL_INFO, "%s : Eric Dietz, fez, ", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s : Uli Schlachter, psychon, ", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s : Matt Smith, dz, ", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s : Daniel De Graaf danieldg, ", user->nick.c_str()); user->WriteNumeric(RPL_INFO, "%s : ", user->nick.c_str()); user->WriteNumeric(RPL_INFO, "%s :\2Regular Contributors\2:", user->nick.c_str()); - user->WriteNumeric(RPL_INFO, "%s : satmd nenolod John2 Skip", user->nick.c_str()); - user->WriteNumeric(RPL_INFO, "%s : jilles Majic eggy Trystan", user->nick.c_str()); - user->WriteNumeric(RPL_INFO, "%s : Quension danieldg praetorian", user->nick.c_str()); - user->WriteNumeric(RPL_INFO, "%s : GreenReaper psychon searchirc.com irc-junkie.org", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s : Majic MacGyver Namegduf Ankit", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s : Phoenix Taros", user->nick.c_str()); user->WriteNumeric(RPL_INFO, "%s : ", user->nick.c_str()); user->WriteNumeric(RPL_INFO, "%s :\2Other Contributors\2:", user->nick.c_str()); - user->WriteNumeric(RPL_INFO, "%s : dmb Zaba skenmy LeaChim", user->nick.c_str()); - user->WriteNumeric(RPL_INFO, "%s : Thunderhacker Dan Jason owine", user->nick.c_str()); - user->WriteNumeric(RPL_INFO, "%s : Adremelech dz BuildSmart HiroP", user->nick.c_str()); - user->WriteNumeric(RPL_INFO, "%s : ThaPrince Bricker AnMaster djGrrr", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s : dmb Zaba skenmy GreenReaper", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s : Dan Jason satmd owine", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s : Adremelech John2 jilles HiroP", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s : eggy Bricker AnMaster djGrrr", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s : nenolod Quension praetorian pippijn", user->nick.c_str()); user->WriteNumeric(RPL_INFO, "%s : ", user->nick.c_str()); user->WriteNumeric(RPL_INFO, "%s :\2Former Contributors\2:", user->nick.c_str()); user->WriteNumeric(RPL_INFO, "%s : CC jamie typobox43 Burlex (win32)", user->nick.c_str()); - user->WriteNumeric(RPL_INFO, "%s : Stskeeps ", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s : Stskeeps ThaPrince BuildSmart Thunderhacker", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s : Skip LeaChim", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s : ", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s :\2Thanks To\2:", user->nick.c_str()); + user->WriteNumeric(RPL_INFO, "%s : searchirc.com irc-junkie.org Brik", user->nick.c_str()); user->WriteNumeric(RPL_INFO, "%s : ", user->nick.c_str()); user->WriteNumeric(RPL_INFO, "%s : Best experienced with: \2An IRC client\2", user->nick.c_str()); FOREACH_MOD(I_OnInfo,OnInfo(user)); user->WriteNumeric(RPL_ENDOFINFO, "%s :End of /INFO list", user->nick.c_str()); return CMD_SUCCESS; } + +COMMAND_INIT(CommandInfo)