diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-28 06:32:45 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-28 06:32:45 +0000 |
commit | 000b8b342343e54f24c42eb925ded78bd7511216 (patch) | |
tree | c4dc3b5fd26549827285129c91f3c4f32082dc63 /src/commands.c | |
parent | f439924aa29ac0ea2b050187aa4d63e48cb8f4c2 (diff) |
Removed mod_current_module, again, so far, no ill-effects...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1809 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/commands.c')
-rw-r--r-- | src/commands.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/commands.c b/src/commands.c index da13b6357..256115f73 100644 --- a/src/commands.c +++ b/src/commands.c @@ -62,13 +62,11 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[], notice_lang(service, u, OPER_DEFCON_DENIED); } } else { - mod_current_module = NULL; if ((c->has_priv == NULL) || c->has_priv(u)) { retVal = c->routine(u); if (retVal == MOD_CONT) { current = c->next; while (current && retVal == MOD_CONT) { - mod_current_module = NULL; retVal = current->routine(u); current = current->next; } @@ -129,7 +127,6 @@ void mod_help_cmd(char *service, User * u, CommandHash * cmdTable[], int has_had_help = 0; int cont = MOD_CONT; const char *p1 = NULL, *p2 = NULL, *p3 = NULL, *p4 = NULL; - Module *calling_module = mod_current_module; for (current = c; (current) && (cont == MOD_CONT); current = current->next) { @@ -187,8 +184,6 @@ void mod_help_cmd(char *service, User * u, CommandHash * cmdTable[], } else { do_help_limited(service, u, c); } - - mod_current_module = calling_module; } /*************************************************************************/ |