From 39eb13fbbb32a1e7eebb8bfd6c1905951a2d4b50 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Sat, 8 Nov 2008 16:37:19 +0000 Subject: [PATCH] Compress do_run_cmd() into mod_run_cmd(). git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1595 5417fbe8-f217-4b02-8779-1006273d7864 --- include/commands.h | 1 - src/commands.c | 16 ---------------- 2 files changed, 17 deletions(-) diff --git a/include/commands.h b/include/commands.h index f426f38d7..7ffb27a73 100644 --- a/include/commands.h +++ b/include/commands.h @@ -23,7 +23,6 @@ extern MDE Command *lookup_cmd(Command *list, char *name); extern void help_cmd(char *service, User *u, Command *list, char *name); -extern void do_run_cmd(char *service, User * u, Command *c,const char *cmd); 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); diff --git a/src/commands.c b/src/commands.c index e0e14635d..02e57968e 100644 --- a/src/commands.c +++ b/src/commands.c @@ -52,22 +52,6 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[], const char *cmd) { Command *c = findCommand(cmdTable, cmd); - do_run_cmd(service, u, c, cmd); -} - - -/*************************************************************************/ - -/** - * Run the given command - * @param services Services Client - * @param u User Struct - * @param c Command Struct - * @param cmd Command - * @return void - */ -void do_run_cmd(char *service, User * u, Command * c, const char *cmd) -{ int retVal = 0; Command *current;