summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-05-03 14:06:59 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-05-03 14:06:59 +0000
commited4423dbabe13ff5c56118f45acf81e9be84f284 (patch)
tree7415037aae47bdc2e73a29648987629ff0d8b753 /commands.c
parentc5cb6ef9fe5faffab9630a2d2684e7373f32403f (diff)
BUILD : 1.7.2 (81) BUGS : N/A NOTES : Always set the correct module name when executing module functions
git-svn-id: svn://svn.anope.org/anope/trunk@81 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@57 5417fbe8-f217-4b02-8779-1006273d7864
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;