summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/commands.c b/src/commands.c
index cf9509497..e37eb574b 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -69,29 +69,6 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[],
const char *cmd)
{
Command *c = findCommand(cmdTable, cmd);
-
- if (c) {
- if (cmdTable == HOSTSERV) {
- c->mod_name = NULL;
- } else if (cmdTable == BOTSERV) {
- c->mod_name = NULL;
- } else if (cmdTable == MEMOSERV) {
- c->mod_name = NULL;
- } else if (cmdTable == CHANSERV) {
- c->mod_name = NULL;
- } else if (cmdTable == NICKSERV) {
- c->mod_name = NULL;
- } else if (cmdTable == HELPSERV) {
- c->mod_name = NULL;
- } else if (cmdTable == OPERSERV) {
- c->mod_name = NULL;
- } else {
- c->mod_name = sstrdup(mod_current_module_name);
- if (debug)
- alog("Module %s is using addCommand instead of moduleAddCommand.", c->mod_name);
- }
- }
-
do_run_cmd(service, u, c, cmd);
}