summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands.c41
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);
-}
-
-/*************************************************************************/