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:
parent
865509757c
commit
455039ae69
@ -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