Comparison

mod_mam/mod_mam.lua @ 1737:2ee9725c7fc6

mod_mam: There are other storage backends that support archives now
author Kim Alvefur <zash@zash.se>
date Sun, 17 May 2015 17:17:26 +0200
parent 1698:55bc42c1d8c5
child 1746:5734a6199938
comparison
equal deleted inserted replaced
1736:efbb73851af9 1737:2ee9725c7fc6
39 local archive = module:open_store(archive_store, "archive"); 39 local archive = module:open_store(archive_store, "archive");
40 if not archive or archive.name == "null" then 40 if not archive or archive.name == "null" then
41 module:log("error", "Could not open archive storage"); 41 module:log("error", "Could not open archive storage");
42 return; 42 return;
43 elseif not archive.find then 43 elseif not archive.find then
44 module:log("error", "mod_%s does not support archiving, switch to mod_storage_sql2", archive._provided_by); 44 module:log("error", "mod_%s does not support archiving", archive._provided_by);
45 return; 45 return;
46 end 46 end
47 47
48 -- Handle prefs. 48 -- Handle prefs.
49 module:hook("iq/self/"..xmlns_mam..":prefs", function(event) 49 module:hook("iq/self/"..xmlns_mam..":prefs", function(event)