summaryrefslogtreecommitdiff
path: root/src/process.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-05 20:09:28 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-05 20:09:28 +0000
commitde902c6db3923facb7393fc63a315a04fe580434 (patch)
treeff730c9c9a5ebd4b03b44330f2f7ed5bf27e98c4 /src/process.c
parente02967bd4a78eba1646e6089406a443ecf13fe8a (diff)
Always set mod_current_module and mod_current_module_name, fixes a few of the functions in modules.c relying on it.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2931 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c
index 730745c46..f3e4ef0f1 100644
--- a/src/process.c
+++ b/src/process.c
@@ -395,14 +395,18 @@ void process()
if (m) {
if (m->func) {
mod_current_module_name = m->mod_name;
+ mod_current_module = findModule(m->mod_name);
retVal = m->func(source, ac, av);
mod_current_module_name = NULL;
+ mod_current_module = NULL;
if (retVal == MOD_CONT) {
current = m->next;
while (current && current->func && retVal == MOD_CONT) {
mod_current_module_name = current->mod_name;
+ mod_current_module = findModule(current->mod_name);
retVal = current->func(source, ac, av);
mod_current_module_name = NULL;
+ mod_current_module = NULL;
current = current->next;
}
}