1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 22:26:38 +02:00

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
This commit is contained in:
cyberbotx
2009-04-10 00:10:27 +00:00
parent 87ecbec79d
commit 56464bbdd8
+1 -1
View File
@@ -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);
}