diff options
author | Mickael Remond <mremond@process-one.net> | 2016-04-06 13:57:12 +0200 |
---|---|---|
committer | Mickael Remond <mremond@process-one.net> | 2016-04-06 13:57:12 +0200 |
commit | b2279d481d9d4326549c1ad67dfcff5f8dbb1efd (patch) | |
tree | 2bfcee2174400993883c7ccf567f7c07aa0d9372 /src | |
parent | Now we need to start stringprep before config (diff) | |
parent | Merge pull request #1051 from genric/patch-1 (diff) |
Merge branch 'master' of github.com:processone/ejabberd
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_muc_admin.erl | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl index 7c6e84c4..5fbda4f2 100644 --- a/src/mod_muc_admin.erl +++ b/src/mod_muc_admin.erl @@ -824,8 +824,12 @@ get_room_options(Pid) -> get_options(Config). get_options(Config) -> - Fields = record_info(fields, config), - [config | Values] = tuple_to_list(Config), + Fields = [jlib:atom_to_binary(Field) || Field <- record_info(fields, config)], + [config | ValuesRaw] = tuple_to_list(Config), + Values = lists:map(fun(V) when is_atom(V) -> jlib:atom_to_binary(V); + (V) when is_integer(V) -> jlib:integer_to_binary(V); + (V) when is_tuple(V); is_list(V) -> list_to_binary(hd(io_lib:format("~w", [V]))); + (V) -> V end, ValuesRaw), lists:zip(Fields, Values). %%---------------------------- @@ -881,12 +885,19 @@ make_opts(StateData) -> Config = StateData#state.config, [ {title, Config#config.title}, + {vcard, Config#config.vcard}, + {voice_request_min_interval, Config#config.voice_request_min_interval}, {allow_change_subj, Config#config.allow_change_subj}, {allow_query_users, Config#config.allow_query_users}, {allow_private_messages, Config#config.allow_private_messages}, + {allow_private_messages_from_visitors, Config#config.allow_private_messages_from_visitors}, + {allow_visitor_status, Config#config.allow_visitor_status}, + {allow_visitor_nickchange, Config#config.allow_visitor_nickchange}, + {allow_voice_requests, Config#config.allow_voice_requests}, {public, Config#config.public}, {public_list, Config#config.public_list}, {persistent, Config#config.persistent}, + {mam, Config#config.mam}, {moderated, Config#config.moderated}, {members_by_default, Config#config.members_by_default}, {members_only, Config#config.members_only}, @@ -894,6 +905,8 @@ make_opts(StateData) -> {password_protected, Config#config.password_protected}, {password, Config#config.password}, {anonymous, Config#config.anonymous}, + {captcha_protected, Config#config.captcha_protected}, + {description, Config#config.description}, {logging, Config#config.logging}, {max_users, Config#config.max_users}, {affiliations, ?DICT:to_list(StateData#state.affiliations)}, |