summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-10 00:10:27 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-10 00:10:27 +0000
commit56464bbdd8b0984ab03f235314af55f2cb5feed2 (patch)
tree12b95d7749a39c7a1e7c79905ed61fab3b12b1dc /src
parent87ecbec79dfc02abcaaf3ce2c04b848e968748da (diff)
Fix crash in mod_help_cmd when a non-existing command is looked up, spotted by Adam.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2268 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.c b/src/commands.c
index 17deffb04..f6c2594af 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -171,7 +171,7 @@ void mod_help_cmd(char *service, User * u, CommandHash * cmdTable[], const char
std::string subcommand = tokens.StreamEnd() ? "" : tokens.GetRemaining();
- if (!c->OnHelp(u, subcommand))
+ if (!c || !c->OnHelp(u, subcommand))
notice_lang(service, u, NO_HELP_AVAILABLE, cmd);
}