Skip to content

Commit

Permalink
Fix the maximum number of users in a MUC room
Browse files Browse the repository at this point in the history
The room option for max_users in a MUC room is capped to the maximum of
the service level max_users option. As this option wasn't set, the
maximum users per MUC room were limited to 200. This commit fixes that.
  • Loading branch information
Dunedan committed Aug 16, 2024
1 parent 4e636d1 commit d247ce6
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 d247ce6

Please sign in to comment.