# HG changeset patch # User Kim Alvefur # Date 1487548111 -3600 # Node ID bc7539ccbde18b7ae177a92374cc3ee0ac77560e # Parent 34a6ba5dfe4ff7b92a38f6a2b2547b88b41fc2de mod_mam: Normalize whitespace diff -r 34a6ba5dfe4f -r bc7539ccbde1 mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Mon Feb 20 00:09:13 2017 +0100 +++ b/mod_mam/mod_mam.lua Mon Feb 20 00:48:31 2017 +0100 @@ -141,7 +141,6 @@ local before, after = qset and qset.before, qset and qset.after; if type(before) ~= "string" then before = nil; end - -- Load all the data! local data, err = archive:find(origin.username, { start = qstart; ["end"] = qend; -- Time range @@ -267,6 +266,7 @@ log("debug", "Not archiving stanza: %s (type)", stanza:top_tag()); return; end + -- or if hints suggest we shouldn't if not stanza:get_child("store", "urn:xmpp:hints") then -- No hint telling us we should store if stanza:get_child("no-permanent-store", "urn:xmpp:hints")