summaryrefslogtreecommitdiff
path: root/src/process.c
diff options
context:
space:
mode:
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;
}
}