summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands.c b/commands.c
index 9df040212..2863d6ca3 100644
--- a/commands.c
+++ b/commands.c
@@ -73,7 +73,7 @@ void do_run_cmd(const char *service, User * u, Command * c,
if (retVal == MOD_CONT) {
current = c->next;
while (current && retVal == MOD_CONT) {
- mod_current_module_name = c->mod_name;
+ mod_current_module_name = current->mod_name;
retVal = current->routine(u);
mod_current_module_name = NULL;
current = current->next;