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:
parent
6d1ea222c0
commit
1b3a6dd54a
@ -361,7 +361,7 @@ build_summary_room(Name, Host, Pid) ->
|
|||||||
{<<Name/binary, "@", Host/binary>>,
|
{<<Name/binary, "@", Host/binary>>,
|
||||||
misc:atom_to_binary(Public),
|
misc:atom_to_binary(Public),
|
||||||
Participants
|
Participants
|
||||||
}.
|
}.
|
||||||
|
|
||||||
muc_register_nick(Nick, FromBinary, ServerHost) ->
|
muc_register_nick(Nick, FromBinary, ServerHost) ->
|
||||||
Host = find_host(ServerHost),
|
Host = find_host(ServerHost),
|
||||||
@ -950,6 +950,13 @@ format_room_option(OptionString, ValueString) ->
|
|||||||
subject_author ->ValueString;
|
subject_author ->ValueString;
|
||||||
presence_broadcast ->misc:expr_to_term(ValueString);
|
presence_broadcast ->misc:expr_to_term(ValueString);
|
||||||
max_users -> binary_to_integer(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)
|
_ -> misc:binary_to_atom(ValueString)
|
||||||
end,
|
end,
|
||||||
{Option, Value}.
|
{Option, Value}.
|
||||||
|
Loading…
Reference in New Issue
Block a user