Mercurial > prosody-modules
comparison mod_http_muc_log/mod_http_muc_log.lua @ 3062:37a78e365b46
mod_http_muc_log: Fix inverted logic
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 28 May 2018 20:36:42 +0200 |
parents | 25eecbb195d9 |
children | a9fa98e28697 |
comparison
equal
deleted
inserted
replaced
3061:25eecbb195d9 | 3062:37a78e365b46 |
---|---|
300 | 300 |
301 local function list_rooms(event) | 301 local function list_rooms(event) |
302 local response = event.response; | 302 local response = event.response; |
303 local room_list, i = {}, 1; | 303 local room_list, i = {}, 1; |
304 for room in each_room() do | 304 for room in each_room() do |
305 if (room.get_hidden or room.is_hidden)(room) then | 305 if not (room.get_hidden or room.is_hidden)(room) then |
306 room_list[i], i = { | 306 room_list[i], i = { |
307 href = get_link(jid_split(room.jid), nil); | 307 href = get_link(jid_split(room.jid), nil); |
308 name = room:get_name(); | 308 name = room:get_name(); |
309 description = room:get_description(); | 309 description = room:get_description(); |
310 }, i + 1; | 310 }, i + 1; |