mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Merge pull request #374 from weiss/fix-muc-log-config
mod_muc_log: Fix configuration parsing
This commit is contained in:
commit
ffe3ea8917
@ -146,7 +146,13 @@ init([Host, Opts]) ->
|
|||||||
(plaintext) -> plaintext
|
(plaintext) -> plaintext
|
||||||
end, html),
|
end, html),
|
||||||
FilePermissions = gen_mod:get_opt(file_permissions, Opts,
|
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}),
|
end, {644, 33}),
|
||||||
CSSFile = gen_mod:get_opt(cssfile, Opts,
|
CSSFile = gen_mod:get_opt(cssfile, Opts,
|
||||||
fun iolist_to_binary/1,
|
fun iolist_to_binary/1,
|
||||||
|
Loading…
Reference in New Issue
Block a user