This commit is contained in:
2026-05-22 03:16:25 +05:30
parent 4b61d1ac7c
commit 3a3ba6bf73

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 = get_occupant_count(room);
local active_room_occupancy_count = active_participant_count + get_active_host_count(room);
if
participant_limit
and active_room_occupancy_count >= participant_limit