Changeset

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 3061:25eecbb195d9
children 3063:a9fa98e28697
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 20:21:39 2018 +0200
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Mon May 28 20:36:42 2018 +0200
@@ -302,7 +302,7 @@
 	local response = event.response;
 	local room_list, i = {}, 1;
 	for room in each_room() do
-		if (room.get_hidden or room.is_hidden)(room) then
+		if not (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();