Skip to content

Commit

Permalink
Merge pull request #29 from Dunedan/fix-max-muc-users
Browse files Browse the repository at this point in the history
Fix the maximum number of users in a MUC room
  • Loading branch information
Dunedan authored Aug 19, 2024
2 parents 4e636d1 + d247ce6 commit 2649aae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 0 additions & 8 deletions roles/ejabberd/tasks/lobby_muc_room.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,3 @@
{{ room.key | split('@') | last }} description '{{ room.value }}'"
when: room_exists.rc == 1
changed_when: false

# Somehow the max_users default room option in ejabberd.yml doesn't
# seem to work, so we have to manually do it here.
- name: Set maximum room users
ansible.builtin.command: "ejabberdctl change_room_option {{ room.key | split('@') | first }}
{{ room.key | split('@') | last }} max_users 1000"
when: room_exists.rc == 1
changed_when: false
1 change: 1 addition & 0 deletions roles/ejabberd/templates/ejabberd.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ modules:
mam: false
max_users: 1000
persistent: true
max_users: 1000
mod_muc_admin: {}
mod_muc_log:
outdir: "/var/log/ejabberd/muc"
Expand Down

0 comments on commit 2649aae

Please sign in to comment.