Mercurial > prosody-modules
comparison mod_muc_defaults/README.markdown @ 3586:796b29911747
mod_muc_defaults: Create MUCs from config
author | JC Brand <jc@opkode.com> |
---|---|
date | Mon, 06 May 2019 16:05:00 +0200 (2019-05-06) |
parents | |
children | da2d58208574 |
comparison
equal
deleted
inserted
replaced
3585:ddf109d58eff | 3586:796b29911747 |
---|---|
1 # mod_muc_defaults | |
2 | |
3 Creates MUCs with default configuration settings upon Prosody startup. | |
4 | |
5 ## Configuration | |
6 | |
7 Under your MUC component, add a `default_mucs` option with the relevant settings. | |
8 | |
9 ``` | |
10 Component "conference.example.org" "muc" | |
11 modules_enabled = { | |
12 "muc_defaults"; | |
13 } | |
14 | |
15 default_mucs = { | |
16 { | |
17 jid_node = "trollbox", | |
18 affiliations = { | |
19 admin = { "admin@example.org", "superuser@example.org" }, | |
20 owner = { "owner@example.org" }, | |
21 visitors = { "visitor@example.org" } | |
22 }, | |
23 config = { | |
24 allow_member_invites = false, | |
25 change_subject = false, | |
26 history_length = 40, | |
27 language = "en", | |
28 logging = true, | |
29 members_only = false, | |
30 moderated = false, | |
31 persistent = true, | |
32 public = true, | |
33 public_jids = true | |
34 } | |
35 } | |
36 }; | |
37 ``` |