mod_muc_config_restrict/README.markdown
changeset 1824 8de50be756e5
parent 1807 4d73a1a6ba68
child 5011 34fb3d239ac1
equal deleted inserted replaced
1823:1b08597b5e6f 1824:8de50be756e5
    42 =============
    42 =============
    43 
    43 
    44 Enable the plugin on a MUC host (do not put it in your global
    44 Enable the plugin on a MUC host (do not put it in your global
    45 modules\_enabled list):
    45 modules\_enabled list):
    46 
    46 
    47         Component "conference.example.com" "muc"
    47 ``` {.lua}
    48             modules_enabled = { "muc_config_restrict" }
    48 Component "conference.example.com" "muc"
    49             muc_config_restricted = {
    49 modules_enabled = { "muc_config_restrict" }
    50                 "muc#roomconfig_persistentroom"; -- Prevent non-admins from changing a room's persistence setting
    50 muc_config_restricted = {
    51                 "muc#roomconfig_membersonly"; -- Prevent non-admins from changing whether rooms are members-only
    51   "muc#roomconfig_persistentroom"; -- Prevent non-admins from changing a room's persistence setting
    52             }
    52   "muc#roomconfig_membersonly"; -- Prevent non-admins from changing whether rooms are members-only
       
    53 }
       
    54 ```
    53 
    55 
    54 Compatibility
    56 Compatibility
    55 =============
    57 =============
    56 
    58 
    57   ------- --------------
    59   ------- --------------