mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Define mod_opt_type/1 callback
This commit is contained in:
parent
1860801e36
commit
e31799a3b1
@ -14,7 +14,7 @@
|
|||||||
%% API
|
%% API
|
||||||
-export([start_link/2, start/2, stop/1, process_iq/3,
|
-export([start_link/2, start/2, stop/1, process_iq/3,
|
||||||
disco_items/5, disco_identity/5, disco_info/5,
|
disco_items/5, disco_identity/5, disco_info/5,
|
||||||
disco_features/5]).
|
disco_features/5, mod_opt_type/1]).
|
||||||
|
|
||||||
%% gen_server callbacks
|
%% gen_server callbacks
|
||||||
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
|
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
|
||||||
@ -341,3 +341,7 @@ is_not_subscribed({error, ErrEl}) ->
|
|||||||
#xmlel{} -> true;
|
#xmlel{} -> true;
|
||||||
_ -> false
|
_ -> false
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
mod_opt_type(iqdisc) -> fun gen_iq_handler:check_type/1;
|
||||||
|
mod_opt_type(host) -> fun iolist_to_binary/1;
|
||||||
|
mod_opt_type(_) -> [host, iqdisc].
|
||||||
|
Loading…
Reference in New Issue
Block a user