comparison mod_http_muc_log/mod_http_muc_log.lua @ 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
comparison
equal deleted inserted replaced
3057:f69a2e97d912 3058:4d46658b6998
287 287
288 local function list_rooms(event) 288 local function list_rooms(event)
289 local response = event.response; 289 local response = event.response;
290 local room_list, i = {}, 1; 290 local room_list, i = {}, 1;
291 for room in each_room() do 291 for room in each_room() do
292 if public_room(room) then 292 if (room.get_hidden or room.is_hidden)(room) then
293 room_list[i], i = { 293 room_list[i], i = {
294 href = get_link(jid_split(room.jid), nil); 294 href = get_link(jid_split(room.jid), nil);
295 name = room:get_name(); 295 name = room:get_name();
296 description = room:get_description(); 296 description = room:get_description();
297 }, i + 1; 297 }, i + 1;