# HG changeset patch # User Kim Alvefur # Date 1461004368 -7200 # Node ID b2d7e04eb922077c8279a386e1b3ee00a4a1fd75 # Parent d5ba0dec0c955c24187a054ac8fda4e21c36c545 MUC: Store rooms on disk on shutdown diff -r d5ba0dec0c95 -r b2d7e04eb922 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Mon Apr 18 19:19:33 2016 +0200 +++ b/plugins/muc/mod_muc.lua Mon Apr 18 20:32:48 2016 +0200 @@ -285,10 +285,8 @@ 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);