25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Recognize more fields that aren't atom in format_room_option

This commit is contained in:
Paweł Chmielowski 2018-09-20 18:02:47 +02:00
parent 6d1ea222c0
commit 1b3a6dd54a

View File

@ -950,6 +950,13 @@ format_room_option(OptionString, ValueString) ->
subject_author ->ValueString;
presence_broadcast ->misc:expr_to_term(ValueString);
max_users -> binary_to_integer(ValueString);
voice_request_min_interval -> binary_to_integer(ValueString);
vcard -> ValueString;
vcard_xupdate when ValueString /= <<"undefined">>,
ValueString /= <<"external">> ->
ValueString;
lang -> ValueString;
pubsub -> ValueString;
_ -> misc:binary_to_atom(ValueString)
end,
{Option, Value}.