Fix in mod_profile old call to gen_mod:get_opt (#160)

This commit is contained in:
Badlop 2016-03-19 17:56:49 +01:00
parent 7f75aa0372
commit 5fc2b410a2
1 changed files with 1 additions and 1 deletions

View File

@ -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).