diff options
author | Kim Alvefur <zash@zash.se> | 2016-04-18 20:32:48 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-04-18 20:32:48 +0200 |
commit | aebf08ca1508ad2983bc30bd150502cfbc3fcf1b (patch) | |
tree | 57348912952e3c72b9b9f392df89b6f4770da457 /plugins | |
parent | 757f8a53a51dd9cb7c6f10a21778e98e2b3c3ac2 (diff) | |
download | prosody-aebf08ca1508ad2983bc30bd150502cfbc3fcf1b.tar.gz prosody-aebf08ca1508ad2983bc30bd150502cfbc3fcf1b.zip |
MUC: Store rooms on disk on shutdown
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/muc/mod_muc.lua | 4 |
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); |