changeset 5828:0ee77be396b9

mod_http_muc_log: Remove compat for very old MUC API room:get_public() first appeared in 0.10.0
author Kim Alvefur <zash@zash.se>
date Tue, 16 Jan 2024 11:47:22 +0100
parents f76909ec1300
children 1e28f32257d6
files mod_http_muc_log/mod_http_muc_log.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;