plugins/mod_muc.lua

changeset 1562
2b8674e87a24
parent 1522
569d58d21612
equal deleted inserted replaced
1561:04442f3ebe40 1562:2b8674e87a24
74 end 74 end
75 -- to the main muc domain 75 -- to the main muc domain
76 handle_to_domain(origin, stanza); 76 handle_to_domain(origin, stanza);
77 end); 77 end);
78 78
79 prosody.hosts[module:get_host()].muc = { rooms = rooms };
80
79 module.unload = function() 81 module.unload = function()
80 deregister_component(muc_host); 82 deregister_component(muc_host);
81 end 83 end
82 module.save = function() 84 module.save = function()
83 return {rooms = rooms}; 85 return {rooms = rooms};
84 end 86 end
85 module.restore = function(data) 87 module.restore = function(data)
86 rooms = data.rooms or {}; 88 rooms = data.rooms or {};
89 prosody.hosts[module:get_host()].muc = { rooms = rooms };
87 end 90 end

mercurial