diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-08 16:44:06 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-08 16:44:06 +0000 |
commit | 21d89df8dd934b3d64ef9910de5ea2ab27a878ab (patch) | |
tree | cecb1ca60f6d0805669688e1211cf32473b7a941 | |
parent | 39eb13fbbb32a1e7eebb8bfd6c1905951a2d4b50 (diff) |
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
-rw-r--r-- | include/commands.h | 5 | ||||
-rw-r--r-- | src/commands.c | 41 |
2 files changed, 6 insertions, 40 deletions
diff --git a/include/commands.h b/include/commands.h index 7ffb27a73..a399df2b0 100644 --- a/include/commands.h +++ b/include/commands.h @@ -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); /*************************************************************************/ diff --git a/src/commands.c b/src/commands.c index 02e57968e..a7851423d 100644 --- a/src/commands.c +++ b/src/commands.c @@ -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); -} - -/*************************************************************************/ |