1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
19 #include "inspircd_config.h"
21 #include "inspircd_io.h"
25 #include <ext/hash_map>
38 #include "inspstring.h"
39 #include "helperfuncs.h"
42 #include "command_parse.h"
43 #include "cmd_commands.h"
45 extern ServerConfig* Config;
46 extern InspIRCd* ServerInstance;
48 void cmd_commands::Handle (char **parameters, int pcnt, userrec *user)
50 for (unsigned int i = 0; i < ServerInstance->Parser->cmdlist.size(); i++)
52 WriteServ(user->fd,"902 %s :%s %s %d",user->nick,ServerInstance->Parser->cmdlist[i]->command.c_str(),ServerInstance->Parser->cmdlist[i]->source.c_str(),ServerInstance->Parser->cmdlist[i]->min_params);
54 WriteServ(user->fd,"903 %s :End of COMMANDS list",user->nick);