ejabberdctl: Fix crash running defined commands in container and installers

This commit is contained in:
Badlop 2024-02-09 13:26:47 +01:00
parent 4680954112
commit 9f934abd48
1 changed files with 1 additions and 1 deletions

View File

@ -898,7 +898,7 @@ print_usage_command2(Cmd, C, MaxC, ShCode) ->
IsDefinerMod = case Definer of
unknown -> true;
_ -> lists:member(gen_mod, proplists:get_value(behaviour, Definer:module_info(attributes)))
_ -> lists:member([gen_mod], proplists:get_all_values(behaviour, Definer:module_info(attributes)))
end,
ModuleFmt = case IsDefinerMod of
true -> [" ",?B("Module"),": ", atom_to_list(Definer), "\n\n"];