Software /
code /
prosody
Comparison
plugins/mod_mam/mod_mam.lua @ 13165:9c13c11b199d
renamening: Fix newly added imports to use the new namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 18 Jun 2023 16:48:56 +0200 |
parent | 13055:e732f9dfdfc8 |
child | 13209:c8d949cf6b09 |
comparison
equal
deleted
inserted
replaced
13164:1aa83a5667f9 | 13165:9c13c11b199d |
---|---|
35 local is_stanza = st.is_stanza; | 35 local is_stanza = st.is_stanza; |
36 local tostring = tostring; | 36 local tostring = tostring; |
37 local time_now = require "prosody.util.time".now; | 37 local time_now = require "prosody.util.time".now; |
38 local m_min = math.min; | 38 local m_min = math.min; |
39 local timestamp, datestamp = import( "util.datetime", "datetime", "date"); | 39 local timestamp, datestamp = import( "util.datetime", "datetime", "date"); |
40 local parse_duration = require "util.human.io".parse_duration; | 40 local parse_duration = require "prosody.util.human.io".parse_duration; |
41 local default_max_items, max_max_items = 20, module:get_option_number("max_archive_query_results", 50); | 41 local default_max_items, max_max_items = 20, module:get_option_number("max_archive_query_results", 50); |
42 local strip_tags = module:get_option_set("dont_archive_namespaces", { "http://jabber.org/protocol/chatstates" }); | 42 local strip_tags = module:get_option_set("dont_archive_namespaces", { "http://jabber.org/protocol/chatstates" }); |
43 | 43 |
44 local archive_store = module:get_option_string("archive_store", "archive"); | 44 local archive_store = module:get_option_string("archive_store", "archive"); |
45 local archive = module:open_store(archive_store, "archive"); | 45 local archive = module:open_store(archive_store, "archive"); |