Changeset

7372:b2d7e04eb922

MUC: Store rooms on disk on shutdown
author Kim Alvefur <zash@zash.se>
date Mon, 18 Apr 2016 20:32:48 +0200
parents 7371:d5ba0dec0c95
children 7373:9b37aaea68e9
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);