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
commitaebf08ca1508ad2983bc30bd150502cfbc3fcf1b (patch)
tree57348912952e3c72b9b9f392df89b6f4770da457
parent757f8a53a51dd9cb7c6f10a21778e98e2b3c3ac2 (diff)
downloadprosody-aebf08ca1508ad2983bc30bd150502cfbc3fcf1b.tar.gz
prosody-aebf08ca1508ad2983bc30bd150502cfbc3fcf1b.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);