1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 05:16:38 +02:00

Fix for bug #1091, HELP can crash without optional services clients

enabled


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2407 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
adam-
2009-08-04 19:31:47 +00:00
parent 9801065683
commit 45a35e61eb
+6 -6
View File
@@ -669,17 +669,17 @@ void moduleDisplayHelp(const char *service, User * u)
for (idx = 0; idx != MAX_CMD_HASH; idx++) {
for (current = MODULE_HASH[idx]; current; current = current->next) {
if (!strcmp(s_NickServ, service))
if (s_NickServ && !strcmp(s_NickServ, service))
current->m->NickServHelp(u);
else if (!strcmp(s_ChanServ, service))
else if (s_ChanServ && !strcmp(s_ChanServ, service))
current->m->ChanServHelp(u);
else if (!strcmp(s_MemoServ, service))
else if (s_MemoServ && !strcmp(s_MemoServ, service))
current->m->MemoServHelp(u);
else if (!strcmp(s_BotServ, service))
else if (s_BotServ && !strcmp(s_BotServ, service))
current->m->BotServHelp(u);
else if (!strcmp(s_OperServ, service))
else if (s_OperServ && !strcmp(s_OperServ, service))
current->m->OperServHelp(u);
else if (!strcmp(s_HostServ, service))
else if (s_HostServ && !strcmp(s_HostServ, service))
current->m->HostServHelp(u);
}
}