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.
authorKim Alvefur <zash@zash.se>
Tue, 18 Nov 2014 13:59:39 +0100
changeset 1571 eed7db9f3157
parent 1570 67fafebdceb7
child 1572 1aa894db3585
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.
mod_http_muc_log/mod_http_muc_log.lua
mod_mam_muc/mod_mam_muc.lua
--- a/mod_http_muc_log/mod_http_muc_log.lua	Tue Nov 18 13:05:04 2014 +0100
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Tue Nov 18 13:59:39 2014 +0100
@@ -6,7 +6,7 @@
 local it = require"util.iterators";
 local gettime = require"socket".gettime;
 
-local archive = module:open_store("archive2", "archive");
+local archive = module:open_store("muc_log", "archive");
 
 -- Support both old and new MUC code
 local mod_muc = module:depends"muc";
--- a/mod_mam_muc/mod_mam_muc.lua	Tue Nov 18 13:05:04 2014 +0100
+++ b/mod_mam_muc/mod_mam_muc.lua	Tue Nov 18 13:59:39 2014 +0100
@@ -44,7 +44,7 @@
 local log_all_rooms = module:get_option_boolean("muc_log_all_rooms", false);
 local log_by_default = module:get_option_boolean("muc_log_by_default", true);
 
-local archive_store = "archive2";
+local archive_store = "muc_log";
 local archive = module:open_store(archive_store, "archive");
 if not archive or archive.name == "null" then
 	module:log("error", "Could not open archive storage");