comparison mod_http_muc_log/mod_http_muc_log.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 cb4111a4cd36
children 464ed6bc5a73
comparison
equal deleted inserted replaced
1570:67fafebdceb7 1571:eed7db9f3157
4 local nodeprep = require"util.encodings".stringprep.nodeprep; 4 local nodeprep = require"util.encodings".stringprep.nodeprep;
5 local uuid = require"util.uuid".generate; 5 local uuid = require"util.uuid".generate;
6 local it = require"util.iterators"; 6 local it = require"util.iterators";
7 local gettime = require"socket".gettime; 7 local gettime = require"socket".gettime;
8 8
9 local archive = module:open_store("archive2", "archive"); 9 local archive = module:open_store("muc_log", "archive");
10 10
11 -- Support both old and new MUC code 11 -- Support both old and new MUC code
12 local mod_muc = module:depends"muc"; 12 local mod_muc = module:depends"muc";
13 local rooms = rawget(mod_muc, "rooms"); 13 local rooms = rawget(mod_muc, "rooms");
14 local each_room = rawget(mod_muc, "each_room") or function() return it.values(rooms); end; 14 local each_room = rawget(mod_muc, "each_room") or function() return it.values(rooms); end;