1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2007 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
16 #include "commands/cmd_commands.h"
20 extern "C" DllExport command_t* init_command(InspIRCd* Instance)
22 return new cmd_commands(Instance);
25 CmdResult cmd_commands::Handle (const char** parameters, int pcnt, userrec *user)
27 for (command_table::iterator i = ServerInstance->Parser->cmdlist.begin(); i != ServerInstance->Parser->cmdlist.end(); i++)
29 user->WriteServ("902 %s :%s %s %d",user->nick,i->second->command.c_str(),i->second->source.c_str(),i->second->min_params);
31 user->WriteServ("903 %s :End of COMMANDS list",user->nick);