aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_muc.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/mod_muc.lua b/plugins/mod_muc.lua
index c19af879..f1b46eed 100644
--- a/plugins/mod_muc.lua
+++ b/plugins/mod_muc.lua
@@ -274,7 +274,13 @@ component = register_component(muc_domain, function(origin, stanza)
end
end);
-function unload()
+module.unload = function()
deregister_component(muc_domain);
end
-
+module.save = function()
+ return {rooms = rooms.data; jid_nick = jid_nick.data; rooms_info = rooms_info.data; persist_list = persist_list};
+end
+module.restore = function(data)
+ rooms.data, jid_nick.data, rooms_info.data, persist_list =
+ data.rooms or {}, data.jid_nick or {}, data.rooms_info or {}, data.persist_list or {};
+end