mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix mod_muc_admin:set_room_affiliation
Add missing options so they are stored when set_room_affiliation is invoked, instead of being ignored and set to default values after muc restart.
This commit is contained in:
parent
ca9ac019eb
commit
490aa2c6a6
@ -881,12 +881,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 +901,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)},
|
||||
|
Loading…
Reference in New Issue
Block a user