mod_http_muc_log: Remove compat for very old MUC API
authorKim Alvefur <zash@zash.se>
Tue, 16 Jan 2024 11:47:22 +0100
changeset 5832 0ee77be396b9
parent 5831 f76909ec1300
child 5833 1e28f32257d6
mod_http_muc_log: Remove compat for very old MUC API room:get_public() first appeared in 0.10.0
mod_http_muc_log/mod_http_muc_log.lua
--- a/mod_http_muc_log/mod_http_muc_log.lua	Sat Jan 13 12:03:15 2024 +0000
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Tue Jan 16 11:47:22 2024 +0100
@@ -542,7 +542,7 @@
 	local request, response = event.request, event.response;
 	local room_list, i = {}, 1;
 	for room in each_room() do
-		if not (room.get_hidden or room.is_hidden)(room) then
+		if room:get_public() then
 			local localpart = jid_split(room.jid);
 			room_list[i], i = {
 				jid = room.jid;