# HG changeset patch # User Kim Alvefur # Date 1437253919 -7200 # Node ID fb2b9a2e2316e59d844507f3c7e8230382ff9fd7 # Parent 45f7e3c2557f1f9467cc0d2c1e6d0f042ba79976 mod_mam: Support both spellings of XEP-0334 processing hints until XEP is clarified diff -r 45f7e3c2557f -r fb2b9a2e2316 mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Sat Jul 18 23:05:09 2015 +0200 +++ b/mod_mam/mod_mam.lua Sat Jul 18 23:11:59 2015 +0200 @@ -230,8 +230,10 @@ -- or that don't have a or not stanza:get_child("body") -- or if hints suggest we shouldn't - or stanza:get_child("no-permanent-storage", "urn:xmpp:hints") - or stanza:get_child("no-storage", "urn:xmpp:hints") then + or 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 module:log("debug", "Not archiving stanza: %s (content)", stanza:top_tag()); return; end