mod_message_log: Update init() parameter

This commit is contained in:
Holger Weiss 2018-04-06 00:00:11 +02:00
parent 435d0bcc3d
commit d37bb1cd2d
1 changed files with 2 additions and 2 deletions

View File

@ -109,8 +109,8 @@ depends(_Host, _Opts) ->
%% -------------------------------------------------------------------
%% gen_server callbacks.
%% -------------------------------------------------------------------
-spec init(gen_mod:opts()) -> {ok, state()}.
init(Opts) ->
-spec init(list()) -> {ok, state()}.
init([_Host, Opts]) ->
process_flag(trap_exit, true),
ejabberd_hooks:add(reopen_log_hook, ?MODULE, reopen_log, 42),
Filename = gen_mod:get_opt(filename, Opts),