# HG changeset patch # User Kim Alvefur # Date 1461670803 -7200 # Node ID d6e6e21057f01efa8307d6c55a720830b5abacf8 # Parent ef7ea3bad7a1b69f1fc3c1ecf954110bac04924d MUC: Correctly iterate over suspended rooms while excluding live rooms diff -r ef7ea3bad7a1 -r d6e6e21057f0 plugins/muc/mod_muc.lua --- 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);