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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user