diff options
author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-12-30 05:39:28 +0000 |
---|---|---|
committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-12-30 05:39:28 +0000 |
commit | 426667535865a20c9c16ecbc4ffea82deb8017d7 (patch) | |
tree | 44f9879226d71dcb560f6974efc9040c019b2b74 /src/commands.c | |
parent | 67aed6fdc229481d4923240293753fe84b302026 (diff) |
BUILD : 1.7.6 (509) BUGS : 261 NOTES : Doc found more to the bug 261, should to be the last
git-svn-id: svn://svn.anope.org/anope/trunk@509 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@363 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/commands.c')
-rw-r--r-- | src/commands.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/commands.c b/src/commands.c index e37eb574b..8fced507e 100644 --- a/src/commands.c +++ b/src/commands.c @@ -69,6 +69,27 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[], const char *cmd) { Command *c = findCommand(cmdTable, cmd); + + 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); } |