mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Fix documentation for commands implemented in modules with several behaviours
This commit is contained in:
parent
64a210842e
commit
9f6ff515ff
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ gen_doc(#ejabberd_commands{name=Name, tags=Tags, desc=Desc, longdesc=LongDesc,
|
||||||
TagsText = ?RAW(string:join(["_`"++atom_to_list(Tag)++"`_" || Tag <- Tags], ", ")),
|
TagsText = ?RAW(string:join(["_`"++atom_to_list(Tag)++"`_" || Tag <- Tags], ", ")),
|
||||||
IsDefinerMod = case Definer of
|
IsDefinerMod = case Definer of
|
||||||
unknown -> false;
|
unknown -> false;
|
||||||
_ -> lists:member(gen_mod, proplists:get_value(behaviour, Definer:module_info(attributes)))
|
_ -> lists:member(gen_mod, lists:flatten(proplists:get_all_values(behaviour, Definer:module_info(attributes))))
|
||||||
end,
|
end,
|
||||||
ModuleText = case IsDefinerMod of
|
ModuleText = case IsDefinerMod of
|
||||||
true ->
|
true ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue