plugins/mod_muc.lua

changeset 1562
2b8674e87a24
parent 1522
569d58d21612
--- a/plugins/mod_muc.lua	Sat Jul 18 18:51:04 2009 +0100
+++ b/plugins/mod_muc.lua	Mon Jul 20 05:27:59 2009 +0100
@@ -76,6 +76,8 @@
 	handle_to_domain(origin, stanza);
 end);
 
+prosody.hosts[module:get_host()].muc = { rooms = rooms };
+
 module.unload = function()
 	deregister_component(muc_host);
 end
@@ -84,4 +86,5 @@
 end
 module.restore = function(data)
 	rooms = data.rooms or {};
+	prosody.hosts[module:get_host()].muc = { rooms = rooms };
 end

mercurial