summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-15 14:25:35 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-15 14:25:35 +0000
commit911cc43d9c2a562318a2f9d4e2287f0b48529ee4 (patch)
treedda22d97f3adcfdcf8bb28ed8ae3f2cfa834c269
parent6ba8f8b26401ec8a5cf2fcb61deacc275a52e0df (diff)
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
-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