aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
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
commit9a4c91af11caec2962e2cedbd1dc10f0bffa2c1d (patch)
treef803473494e72bcb58d6ee2d7aef2dcb75bbf980 /plugins/muc
parent527b33662003e39aee2239497a88a5c25a638576 (diff)
downloadprosody-9a4c91af11caec2962e2cedbd1dc10f0bffa2c1d.tar.gz
prosody-9a4c91af11caec2962e2cedbd1dc10f0bffa2c1d.zip
MUC: Correctly iterate over suspended rooms while excluding live rooms
Diffstat (limited to 'plugins/muc')
-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);