Comparison

mod_mam/mod_mam.lua @ 1152:01fa82074b62

mod_mam: Remove unused table, it was moved to one of the libs
author Kim Alvefur <zash@zash.se>
date Sun, 11 Aug 2013 23:39:34 +0200
parent 1150:296820f18ba6
child 1185:30b681898c2d
comparison
equal deleted inserted replaced
1151:28d4b58bcc3b 1152:01fa82074b62
29 local time_now = os.time; 29 local time_now = os.time;
30 local m_min = math.min; 30 local m_min = math.min;
31 local timestamp, timestamp_parse = require "util.datetime".datetime, require "util.datetime".parse; 31 local timestamp, timestamp_parse = require "util.datetime".datetime, require "util.datetime".parse;
32 local default_max_items, max_max_items = 20, module:get_option_number("max_archive_query_results", 50); 32 local default_max_items, max_max_items = 20, module:get_option_number("max_archive_query_results", 50);
33 local global_default_policy = module:get_option("default_archive_policy", false); 33 local global_default_policy = module:get_option("default_archive_policy", false);
34 -- TODO Should be possible to enforce it too
35
36 -- For translating preference names from string to boolean and back
37 local default_attrs = {
38 always = true, [true] = "always",
39 never = false, [false] = "never",
40 roster = "roster",
41 }
42
43 34
44 local archive_store = "archive2"; 35 local archive_store = "archive2";
45 local archive = module:open_store(archive_store, "archive"); 36 local archive = module:open_store(archive_store, "archive");
46 37
47 -- Handle prefs. 38 -- Handle prefs.