summaryrefslogtreecommitdiff
path: root/modules.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules.c')
-rw-r--r--modules.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules.c b/modules.c
index 031ef7487..0ed7507fc 100644
--- a/modules.c
+++ b/modules.c
@@ -1264,7 +1264,9 @@ void moduleCallBackRun(void)
if (debug)
alog("Executing callback: %s", tmp->name ? tmp->name : "?");
if (tmp->func) {
+ mod_current_module_name = tmp->owner_name;
tmp->func(tmp->argc, tmp->argv);
+ mod_current_module = NULL;
moduleCallBackDeleteEntry(NULL); /* delete the head */
}
}