summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commands.c3
-rw-r--r--version.log3
2 files changed, 4 insertions, 2 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;
}
diff --git a/version.log b/version.log
index 5fa94742e..1c9e33fd1 100644
--- a/version.log
+++ b/version.log
@@ -9,9 +9,10 @@ VERSION_MAJOR="1"
VERSION_MINOR="8"
VERSION_PATCH="4"
VERSION_EXTRA="-svn"
-VERSION_BUILD="2893"
+VERSION_BUILD="2894"
# $Log$ # Changes since the 1.8.4 Release
+#Revision 2894 - Check if a command routine exists before all command calls
#Revision 2893 - Closed a forgotten file pointer in os_info that would make Windows backups of os_info.db fail
# Leading up to 1.8.4 Release