aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-05-04 23:13:50 +0100
committerMatthew Wild <mwild1@gmail.com>2011-05-04 23:13:50 +0100
commit3d0ba776a6e34710eb43140fdba8350d72e62aac (patch)
tree93789b4c9c75989a753c0107b5aebd4154311b07 /plugins/muc/mod_muc.lua
parentea9555eec65548076e11ac0a9497dc17254f3db5 (diff)
parent69a4cd5a25e4368bcc162c28138cba1d4d920c86 (diff)
downloadprosody-3d0ba776a6e34710eb43140fdba8350d72e62aac.tar.gz
prosody-3d0ba776a6e34710eb43140fdba8350d72e62aac.zip
Merge 0.8->trunk
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r--plugins/muc/mod_muc.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 329b9270..ca2e6e20 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -58,6 +58,9 @@ local function room_save(room, forced)
room._data.history = history;
elseif forced then
datamanager.store(node, muc_host, "config", nil);
+ if not next(room._occupants) then -- Room empty
+ rooms[room.jid] = nil;
+ end
end
if forced then datamanager.store(nil, muc_host, "persistent", persistent_rooms); end
end