comparison mod_mam_muc/mod_mam_muc.lua @ 1571:eed7db9f3157

mod_mam_muc, mod_http_muc_log: Change store name from 'archive2' to 'muc_log' to distinguish it from personal MAM archives. Old data will require migration.
author Kim Alvefur <zash@zash.se>
date Tue, 18 Nov 2014 13:59:39 +0100
parents 5127f4db9d39
children 28411e97db94
comparison
equal deleted inserted replaced
1570:67fafebdceb7 1571:eed7db9f3157
42 local default_max_items, max_max_items = 20, module:get_option_number("max_archive_query_results", max_history_length); 42 local default_max_items, max_max_items = 20, module:get_option_number("max_archive_query_results", max_history_length);
43 43
44 local log_all_rooms = module:get_option_boolean("muc_log_all_rooms", false); 44 local log_all_rooms = module:get_option_boolean("muc_log_all_rooms", false);
45 local log_by_default = module:get_option_boolean("muc_log_by_default", true); 45 local log_by_default = module:get_option_boolean("muc_log_by_default", true);
46 46
47 local archive_store = "archive2"; 47 local archive_store = "muc_log";
48 local archive = module:open_store(archive_store, "archive"); 48 local archive = module:open_store(archive_store, "archive");
49 if not archive or archive.name == "null" then 49 if not archive or archive.name == "null" then
50 module:log("error", "Could not open archive storage"); 50 module:log("error", "Could not open archive storage");
51 return 51 return
52 elseif not archive.find then 52 elseif not archive.find then