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 /src/commands.c | |
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
Diffstat (limited to 'src/commands.c')
-rw-r--r-- | src/commands.c | 41 |
1 files changed, 5 insertions, 36 deletions
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); -} - -/*************************************************************************/ |