# HG changeset patch # User Kim Alvefur # Date 1479576448 -3600 # Node ID 04b09fd144eb7fdf8da41d53784319d71f62c04b # Parent 9332b43931f525f157989a676a933a6b848138bd mod_mam: Alter hints processing diff -r 9332b43931f5 -r 04b09fd144eb plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Sat Nov 19 18:26:09 2016 +0100 +++ b/plugins/mod_mam/mod_mam.lua Sat Nov 19 18:27:28 2016 +0100 @@ -240,12 +240,12 @@ end -- or if hints suggest we shouldn't - if stanza:get_child("no-permanent-storage", "urn:xmpp:hints") -- The XEP needs to decide on "store" or "storage" - or stanza:get_child("no-permanent-store", "urn:xmpp:hints") - or stanza:get_child("no-storage", "urn:xmpp:hints") - or stanza:get_child("no-store", "urn:xmpp:hints") then - log("debug", "Not archiving stanza: %s (hint)", stanza:top_tag()); - return; + 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") + or stanza:get_child("no-store", "urn:xmpp:hints") then -- Hint telling us we should NOT store + log("debug", "Not archiving stanza: %s (hint)", stanza:top_tag()); + return; + end end -- Whos storage do we put it in?