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

Don't convert configuration values to strings

This commit is contained in:
Holger Weiss 2015-02-09 01:08:01 +01:00
parent 7fd7e53e4a
commit d00f0fb1f4

View File

@ -207,12 +207,10 @@ consult(File) ->
end
end.
parserl([$>, $\s | String]) ->
{ok, A2, _} = erl_scan:string(String),
parserl(<<"> ", Term/binary>>) ->
{ok, A2, _} = erl_scan:string(binary_to_list(Term)),
{ok, A3} = erl_parse:parse_term(A2),
A3;
parserl(B) when is_binary(B) ->
parserl(binary_to_list(B));
parserl({A, B}) ->
{parserl(A), parserl(B)};
parserl([El|Tail]) ->