aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-26 13:40:03 +0200
committerKim Alvefur <zash@zash.se>2016-04-26 13:40:03 +0200
commit0b2e3ed49ff9b03339ce11e8d2296bcd31dd3f2b (patch)
treef803473494e72bcb58d6ee2d7aef2dcb75bbf980 /plugins/muc/mod_muc.lua
parent1109ba124279bec3ff77421823c21f2567fccc55 (diff)
downloadprosody-0b2e3ed49ff9b03339ce11e8d2296bcd31dd3f2b.tar.gz
prosody-0b2e3ed49ff9b03339ce11e8d2296bcd31dd3f2b.zip
MUC: Correctly iterate over suspended rooms while excluding live rooms
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r--plugins/muc/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
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);