Skip to content

Commit

Permalink
Docs: When definer is unknown, don't show Module section
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Jan 4, 2024
1 parent 57bd0ef commit d585b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ejabberd_commands_doc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ gen_doc(#ejabberd_commands{name=Name, tags=Tags, desc=Desc, longdesc=LongDesc,
end,
TagsText = [?RAW("*`"++atom_to_list(Tag)++"`* ") || Tag <- Tags],
IsDefinerMod = case Definer of
unknown -> true;
unknown -> false;
_ -> lists:member(gen_mod, proplists:get_value(behaviour, Definer:module_info(attributes)))
end,
ModuleText = case IsDefinerMod of
Expand Down

0 comments on commit d585b1f

Please sign in to comment.