From 9a4c91af11caec2962e2cedbd1dc10f0bffa2c1d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 26 Apr 2016 13:40:03 +0200 Subject: MUC: Correctly iterate over suspended rooms while excluding live rooms --- plugins/muc/mod_muc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index fa0101b8..be34c652 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -180,7 +180,7 @@ function each_room(local_only) 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); -- cgit v1.2.3