mod_message_log: Update init() parameter
This commit is contained in:
parent
435d0bcc3d
commit
d37bb1cd2d
|
@ -109,8 +109,8 @@ depends(_Host, _Opts) ->
|
||||||
%% -------------------------------------------------------------------
|
%% -------------------------------------------------------------------
|
||||||
%% gen_server callbacks.
|
%% gen_server callbacks.
|
||||||
%% -------------------------------------------------------------------
|
%% -------------------------------------------------------------------
|
||||||
-spec init(gen_mod:opts()) -> {ok, state()}.
|
-spec init(list()) -> {ok, state()}.
|
||||||
init(Opts) ->
|
init([_Host, Opts]) ->
|
||||||
process_flag(trap_exit, true),
|
process_flag(trap_exit, true),
|
||||||
ejabberd_hooks:add(reopen_log_hook, ?MODULE, reopen_log, 42),
|
ejabberd_hooks:add(reopen_log_hook, ?MODULE, reopen_log, 42),
|
||||||
Filename = gen_mod:get_opt(filename, Opts),
|
Filename = gen_mod:get_opt(filename, Opts),
|
||||||
|
|
Loading…
Reference in New Issue