-
- send_message(user, service->bot, "MCMSG_HELP_TOPIC_HEADER", cmdname);
- send_message(user, service->bot, "MCMSG_HELP_DIVIDER");
- if(!send_help(user, service->bot, module->helpfile, topic))
- send_message(user, service->bot, "MSG_TOPIC_UNKNOWN");
- send_message(user, service->bot, "MCMSG_HELP_FOOTER");
- return true;
+ module = service->modules.list[ii];
+ if(!module->helpfile)
+ continue;
+ if(dict_find(module->helpfile->db, topic, NULL))
+ {
+ if (module->helpfile && dict_find(module->helpfile->db, topic, NULL))
+ {
+
+ send_message(user, service->bot, "MCMSG_HELP_TOPIC_HEADER", cmdname);
+ send_message(user, service->bot, "MCMSG_HELP_DIVIDER");
+ /* This should never fail but maybe if something is odd? */
+ if(!send_help(user, service->bot, module->helpfile, topic))
+ send_message(user, service->bot, "MSG_TOPIC_UNKNOWN");
+ send_message(user, service->bot, "MCMSG_HELP_FOOTER");
+ return true;
+ }
+ }