Comparison

mod_muc_defaults/README.md @ 6211:750d64c47ec6 draft default tip

Merge
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Tue, 18 Mar 2025 00:31:36 +0700
parent 6003:fe081789f7b5
comparison
equal deleted inserted replaced
6210:24316a399978 6211:750d64c47ec6
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 name = "General Chat",
25 description = "Public chatroom with no particular topic",
26 allow_member_invites = false,
27 change_subject = false,
28 history_length = 40,
29 lang = "en",
30 logging = true,
31 members_only = false,
32 moderated = false,
33 persistent = true,
34 public = true,
35 public_jids = true
36 }
37 }
38 };
39 ```