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 |