From 911cc43d9c2a562318a2f9d4e2287f0b48529ee4 Mon Sep 17 00:00:00 2001 From: Adam- Date: Thu, 15 Apr 2010 14:25:35 +0000 Subject: Check if a command routine exists before all command calls git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2894 5417fbe8-f217-4b02-8779-1006273d7864 --- src/commands.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit