diff options
Diffstat (limited to 'src/mod_delegation.erl')
-rw-r--r-- | src/mod_delegation.erl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mod_delegation.erl b/src/mod_delegation.erl index 9822e81fd..1dd8fb724 100644 --- a/src/mod_delegation.erl +++ b/src/mod_delegation.erl @@ -61,7 +61,6 @@ stop(Host) -> reload(_Host, _NewOpts, _OldOpts) -> ok. -mod_opt_type(iqdisc) -> fun gen_iq_handler:check_type/1; mod_opt_type(namespaces) -> fun(L) -> lists:map( @@ -72,9 +71,8 @@ mod_opt_type(namespaces) -> end, L) end. -mod_options(Host) -> - [{iqdisc, gen_iq_handler:iqdisc(Host)}, - {namespaces, []}]. +mod_options(_Host) -> + [{namespaces, []}]. depends(_, _) -> []. @@ -295,7 +293,7 @@ process_disco_info(State, Type, Host, NS, Info) -> sub_els = [#delegation{delegated = [#delegated{ns = NS}]}]}, Delegations = dict:store({NS, Type}, {Host, Info}, State#state.delegations), gen_iq_handler:add_iq_handler(Type, State#state.server_host, NS, - ?MODULE, Type, gen_iq_handler:iqdisc(Host)), + ?MODULE, Type), ejabberd_router:route(Msg), ?INFO_MSG("Namespace '~s' is delegated to external component '~s'", [NS, Host]), |