This commit is contained in:
2026-05-26 17:10:27 +05:30
parent 3a3ba6bf73
commit e30cc92cbd
4 changed files with 63 additions and 2 deletions

View File

@@ -405,7 +405,7 @@ module:hook("muc-occupant-pre-join", function(event)
ensure_room_data(room);
local participant_limit = get_participant_limit(session);
local active_participant_count = table_count(room._data.politictalk_participant_jids);
local active_room_occupancy_count = active_participant_count + get_active_host_count(room);
local active_room_occupancy_count = active_participant_count;
if
participant_limit
and active_room_occupancy_count >= participant_limit