Skip to content

Commit

Permalink
Update mod_mam dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zinid committed Apr 3, 2019
1 parent 17b9dc6 commit 3013f1b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/mod_mam.erl
Expand Up @@ -245,8 +245,11 @@ reload(Host, NewOpts, OldOpts) ->
ok
end.

depends(_Host, _Opts) ->
[].
depends(_Host, Opts) ->
case proplists:get_bool(user_mucsub_from_muc_archive, Opts) of
true -> [{mod_muc, hard}, {mod_muc_admin, hard}];
false -> []
end.

-spec register_iq_handlers(binary()) -> ok.
register_iq_handlers(Host) ->
Expand Down

0 comments on commit 3013f1b

Please sign in to comment.