Changeset

7403:d6e6e21057f0

MUC: Correctly iterate over suspended rooms while excluding live rooms
author Kim Alvefur <zash@zash.se>
date Tue, 26 Apr 2016 13:40:03 +0200
parents 7402:ef7ea3bad7a1
children 7404:57ca4dcd91a7
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Wed Apr 20 12:29:31 2016 +0200
+++ b/plugins/muc/mod_muc.lua	Tue Apr 26 13:40:03 2016 +0200
@@ -180,7 +180,7 @@
 			seen[room.jid] = true;
 		end
 		for room_jid in pairs(persistent_rooms_storage:get(nil) or {}) do
-			if seen[room_jid] then
+			if not seen[room_jid] then
 				local room = restore_room(room_jid);
 				if room == nil then
 					module:log("error", "Missing data for room '%s', omitting from iteration", room_jid);