25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

mod_muc_log: Fix configuration parsing

Fix mod_muc_log's parsing of the "file_permissions" option.

Resolves #373.
This commit is contained in:
Holger Weiss 2014-12-08 15:51:06 +01:00
parent 865509757c
commit 455039ae69

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,