272 if type == "error" or type == "result" then return; end |
272 if type == "error" or type == "result" then return; end |
273 handle_to_domain(origin, stanza); |
273 handle_to_domain(origin, stanza); |
274 end |
274 end |
275 end); |
275 end); |
276 |
276 |
277 function unload() |
277 module.unload = function() |
278 deregister_component(muc_domain); |
278 deregister_component(muc_domain); |
279 end |
279 end |
280 |
280 module.save = function() |
|
281 return {rooms = rooms.data; jid_nick = jid_nick.data; rooms_info = rooms_info.data; persist_list = persist_list}; |
|
282 end |
|
283 module.restore = function(data) |
|
284 rooms.data, jid_nick.data, rooms_info.data, persist_list = |
|
285 data.rooms or {}, data.jid_nick or {}, data.rooms_info or {}, data.persist_list or {}; |
|
286 end |