From afa9082458b586321faf6aa4afa72cf6ba30c26b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 27 Apr 2017 12:41:53 +0200 Subject: mod_mam: Use correct variable --- plugins/mod_mam/mod_mam.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_mam/mod_mam.lua') diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index f46d3818..accb047b 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -139,7 +139,7 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event) limit = qmax + 1; before = before; after = after; reverse = reverse; - total = get_total; + total = use_total; }); if not data then -- cgit v1.2.3 From 49655b22344eaa3ee55d9059965b4a5ffe36654c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 7 May 2017 20:23:29 +0200 Subject: mod_mam: Format timestamps in log message --- plugins/mod_mam/mod_mam.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/mod_mam/mod_mam.lua') diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index accb047b..4235fd59 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -123,7 +123,9 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event) end module:log("debug", "Archive query, id %s with %s from %s until %s)", - tostring(qid), qwith or "anyone", qstart or "the dawn of time", qend or "now"); + tostring(qid), qwith or "anyone", + qstart and timestamp(qstart) or "the dawn of time", + qend and timestamp(qend) or "now"); -- RSM stuff local qset = rsm.get(query); -- cgit v1.2.3