From 5fc2b410a2c30d38bbc6237dd050dcf6e8fcc2fe Mon Sep 17 00:00:00 2001 From: Badlop Date: Sat, 19 Mar 2016 17:56:49 +0100 Subject: [PATCH] Fix in mod_profile old call to gen_mod:get_opt (#160) --- mod_profile/src/mod_profile.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_profile/src/mod_profile.erl b/mod_profile/src/mod_profile.erl index ef67f85..70fdb95 100644 --- a/mod_profile/src/mod_profile.erl +++ b/mod_profile/src/mod_profile.erl @@ -105,7 +105,7 @@ start(Host, Opts) -> remove_user, 50), ejabberd_hooks:add(disco_sm_features, Host, ?MODULE, get_sm_features, 50), - IQDisc = gen_mod:get_opt(iqdisc, Opts, one_queue), + IQDisc = gen_mod:get_opt(iqdisc, Opts, fun gen_iq_handler:check_type/1, one_queue), gen_iq_handler:add_iq_handler(ejabberd_sm, Host, ?NS_PROFILE, ?MODULE, process_sm_iq, IQDisc).