mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Require opt_type/1 callback
This commit is contained in:
parent
ef3753aa86
commit
5a5f188767
@ -62,7 +62,7 @@
|
||||
-callback options() -> [atom() | {atom(), term()}].
|
||||
-callback globals() -> [atom()].
|
||||
|
||||
-optional_callbacks([globals/0, opt_type/1]).
|
||||
-optional_callbacks([globals/0]).
|
||||
|
||||
%%%===================================================================
|
||||
%%% API
|
||||
@ -418,7 +418,8 @@ callback_modules(external) ->
|
||||
fun(M) ->
|
||||
case code:ensure_loaded(M) of
|
||||
{module, _} ->
|
||||
erlang:function_exported(M, options, 0);
|
||||
erlang:function_exported(M, options, 0)
|
||||
andalso erlang:function_exported(M, opt_type, 1);
|
||||
{error, _} ->
|
||||
false
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user