X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_commands.cpp;h=257413c1134f9a742efed1a085cc994edf6ebaed;hb=922d4ebf7a27a6577d6b4f91e0f42ccdfa989455;hp=961c8db880a5a164ff4e1c5e626f4839ae3f6c31;hpb=25d1c9c176be31458ffc264d5b6e7ccdd8660717;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_commands.cpp b/src/cmd_commands.cpp index 961c8db88..257413c11 100644 --- a/src/cmd_commands.cpp +++ b/src/cmd_commands.cpp @@ -2,10 +2,10 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * Inspire is copyright (C) 2002-2005 ChatSpike-Dev. + * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. * E-mail: - * - * + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see @@ -14,38 +14,15 @@ * --------------------------------------------------- */ -using namespace std; - -#include "inspircd_config.h" #include "inspircd.h" -#include "inspircd_io.h" -#include -#include -#ifdef GCC3 -#include -#else -#include -#endif -#include -#include -#include -#include #include "users.h" -#include "ctables.h" -#include "globals.h" -#include "message.h" #include "commands.h" -#include "inspstring.h" #include "helperfuncs.h" -#include "hashcomp.h" -#include "typedefs.h" -#include "command_parse.h" -#include "cmd_commands.h" +#include "commands/cmd_commands.h" -extern ServerConfig* Config; extern InspIRCd* ServerInstance; -void cmd_commands::Handle (char **parameters, int pcnt, userrec *user) +void cmd_commands::Handle (const char** parameters, int pcnt, userrec *user) { for (nspace::hash_map::iterator i = ServerInstance->Parser->cmdlist.begin(); i != ServerInstance->Parser->cmdlist.end(); i++) { @@ -53,5 +30,3 @@ void cmd_commands::Handle (char **parameters, int pcnt, userrec *user) } WriteServ(user->fd,"903 %s :End of COMMANDS list",user->nick); } - -