diff options
Diffstat (limited to 'src/ejabberd_local.erl')
-rw-r--r-- | src/ejabberd_local.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ejabberd_local.erl b/src/ejabberd_local.erl index b75ffe08..c42a8a01 100644 --- a/src/ejabberd_local.erl +++ b/src/ejabberd_local.erl @@ -22,13 +22,14 @@ start() -> register(ejabberd_local, spawn(ejabberd_local, init, [])), mod_register:start(), mod_roster:start(), + mod_disco:start(), ok. init() -> MyDomain = ?MYNAME, ejabberd_router:register_local_route(MyDomain), loop(#state{mydomain = MyDomain, - iqtable = ets:new(iqtable, [])}). + iqtable = ets:new(local_iqtable, [named_table])}). loop(State) -> receive @@ -37,6 +38,7 @@ loop(State) -> loop(State); {register_iq_handler, XMLNS, Module, Function} -> ets:insert(State#state.iqtable, {XMLNS, Module, Function}), + mod_disco:register_feature(XMLNS), loop(State) end. |