changeset 3058:4d46658b6998

mod_http_muc_log: Only exclude hidden rooms from listing (like disco#items)
author Kim Alvefur <zash@zash.se>
date Mon, 28 May 2018 20:04:46 +0200
parents f69a2e97d912
children 14d8f2a9d5f4
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	Mon May 28 19:06:49 2018 +0200
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Mon May 28 20:04:46 2018 +0200
@@ -289,7 +289,7 @@
 	local response = event.response;
 	local room_list, i = {}, 1;
 	for room in each_room() do
-		if public_room(room) then
+		if (room.get_hidden or room.is_hidden)(room) then
 			room_list[i], i = {
 				href = get_link(jid_split(room.jid), nil);
 				name = room:get_name();