25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Docs: When definer is unknown, don't show Module section

This commit is contained in:
Badlop 2023-11-30 22:29:34 +01:00
parent 57bd0ef4f5
commit d585b1fcb6

View File

@ -402,7 +402,7 @@ gen_doc(#ejabberd_commands{name=Name, tags=Tags, desc=Desc, longdesc=LongDesc,
end, end,
TagsText = [?RAW("*`"++atom_to_list(Tag)++"`* ") || Tag <- Tags], TagsText = [?RAW("*`"++atom_to_list(Tag)++"`* ") || Tag <- Tags],
IsDefinerMod = case Definer of IsDefinerMod = case Definer of
unknown -> true; unknown -> false;
_ -> lists:member(gen_mod, proplists:get_value(behaviour, Definer:module_info(attributes))) _ -> lists:member(gen_mod, proplists:get_value(behaviour, Definer:module_info(attributes)))
end, end,
ModuleText = case IsDefinerMod of ModuleText = case IsDefinerMod of