1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 02:26:38 +02:00

Same cleanups for help_cmd, mod_help_cmd, etc insanity.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1596 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-11-08 16:44:06 +00:00
parent 39eb13fbbb
commit 21d89df8dd
2 changed files with 6 additions and 40 deletions
+1 -4
View File
@@ -21,11 +21,8 @@
*/
extern MDE Command *lookup_cmd(Command *list, char *name);
extern void help_cmd(char *service, User *u, Command *list,
char *name);
extern MDE void do_help_limited(char *service, User * u, Command * c);
extern void do_help_cmd(char *service, User * u, Command *c,const char *cmd);
extern MDE void mod_help_cmd(char *service, User *u, CommandHash *cmdTable[],const char *cmd);
extern MDE void mod_run_cmd(char *service, User *u, CommandHash *cmdTable[],const char *cmd);
extern MDE void do_help_limited(char *service, User * u, Command * c);
/*************************************************************************/
+5 -36
View File
@@ -119,15 +119,17 @@ void do_help_limited(char *service, User * u, Command * c)
/*************************************************************************/
/**
* Print a help message for the given command.
* Prints the help message for a given command.
* @param services Services Client
* @param u User Struct
* @param c Command Struct
* @param Command Hash Table
* @param cmd Command
* @return void
*/
void do_help_cmd(char *service, User * u, Command * c, const char *cmd)
void mod_help_cmd(char *service, User * u, CommandHash * cmdTable[],
const char *cmd)
{
Command *c = findCommand(cmdTable, cmd);
Command *current;
int has_had_help = 0;
int cont = MOD_CONT;
@@ -203,36 +205,3 @@ void do_help_cmd(char *service, User * u, Command * c, const char *cmd)
}
/*************************************************************************/
/**
* Find the Help Command
* @param services Services Client
* @param u User Struct
* @param c Command Struct
* @param cmd Command
* @return void
*/
void help_cmd(char *service, User * u, Command * list, char *cmd)
{
Command *c = lookup_cmd(list, cmd);
do_help_cmd(service, u, c, cmd);
}
/*************************************************************************/
/**
* Find the Help Command
* @param services Services Client
* @param u User Struct
* @param Command Hash Table
* @param cmd Command
* @return void
*/
void mod_help_cmd(char *service, User * u, CommandHash * cmdTable[],
const char *cmd)
{
Command *c = findCommand(cmdTable, cmd);
do_help_cmd(service, u, c, cmd);
}
/*************************************************************************/