25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Merge pull request #374 from weiss/fix-muc-log-config

mod_muc_log: Fix configuration parsing
This commit is contained in:
Evgeny Khramtsov 2014-12-08 22:56:20 +03:00
commit ffe3ea8917

View File

@ -146,7 +146,13 @@ init([Host, Opts]) ->
(plaintext) -> plaintext
end, html),
FilePermissions = gen_mod:get_opt(file_permissions, Opts,
fun({A, B}) -> {A, B}
fun(SubOpts) ->
F = fun({mode, Mode}, {_M, G}) ->
{Mode, G};
({group, Group}, {M, _G}) ->
{M, Group}
end,
lists:foldl(F, {644, 33}, SubOpts)
end, {644, 33}),
CSSFile = gen_mod:get_opt(cssfile, Opts,
fun iolist_to_binary/1,