diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/commands.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands.c b/src/commands.c index 0560798f5..f846ee8db 100644 --- a/src/commands.c +++ b/src/commands.c @@ -105,7 +105,8 @@ void do_run_cmd(char *service, User * u, Command * c, const char *cmd) while (current && retVal == MOD_CONT) { mod_current_module_name = current->mod_name; mod_current_module = NULL; - retVal = current->routine(u); + if (current->routine) + retVal = current->routine(u); mod_current_module_name = NULL; current = current->next; } |