Skip to content

Commit

Permalink
Removed ejabberd_hooks module
Browse files Browse the repository at this point in the history
  • Loading branch information
pawlooss1 committed Dec 12, 2022
1 parent d9a5c46 commit 25d7042
Show file tree
Hide file tree
Showing 5 changed files with 157 additions and 745 deletions.
2 changes: 1 addition & 1 deletion big_tests/tests/sm_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ rpc_stop_hook_handler(HookExtra, HostType) ->
HookExtra, 50).

hook_handler_fn(Acc,
#{args := [Jid]} = _Params,
#{jid := Jid} = _Params,
#{luser := LUser, pid := TestCasePid} = _Extra) ->
{U, _S, R} = jid:to_lower(Jid),
case U of
Expand Down
115 changes: 0 additions & 115 deletions src/ejabberd_hooks.erl

This file was deleted.

2 changes: 1 addition & 1 deletion src/global_distrib/mod_global_distrib_bounce.erl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ start(HostType, _Opts) ->
-spec stop(mongooseim:host_type()) -> any().
stop(HostType) ->
ejabberd_sup:stop_child(?MODULE),
gen_hook:add_handlers(hooks(HostType)),
gen_hook:delete_handlers(hooks(HostType)),
ets:delete(?MS_BY_TARGET),
ets:delete(?MESSAGE_STORE).

Expand Down
Loading

0 comments on commit 25d7042

Please sign in to comment.