aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-18 20:32:48 +0200
committerKim Alvefur <zash@zash.se>2016-04-18 20:32:48 +0200
commit5564a8d9a03614a5b0bcd2deb6f13740c121a419 (patch)
tree57348912952e3c72b9b9f392df89b6f4770da457
parentfd4a8e0241802a76693ccb8931f9fe42fdb8b2f6 (diff)
downloadprosody-5564a8d9a03614a5b0bcd2deb6f13740c121a419.tar.gz
prosody-5564a8d9a03614a5b0bcd2deb6f13740c121a419.zip
MUC: Store rooms on disk on shutdown
-rw-r--r--plugins/muc/mod_muc.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 8613ab06..fa0101b8 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -285,10 +285,8 @@ for event_name, method in pairs {
end
function shutdown_component()
- local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user"})
- :tag("status", { code = "332"}):up();
for room in each_room(true) do
- room:clear(x);
+ room:save(true);
end
end
module:hook_global("server-stopping", shutdown_component);