aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam/mod_mam.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-11-19 18:27:28 +0100
committerKim Alvefur <zash@zash.se>2016-11-19 18:27:28 +0100
commit0079e94229aafa89d18d5b8b49b0f42cbf86c30b (patch)
tree218990d978cf5256d5cd8244d69dcc594d6ebeb1 /plugins/mod_mam/mod_mam.lua
parente03e8cd897bb2f549a16a041f6deaef4350df909 (diff)
downloadprosody-0079e94229aafa89d18d5b8b49b0f42cbf86c30b.tar.gz
prosody-0079e94229aafa89d18d5b8b49b0f42cbf86c30b.zip
mod_mam: Alter hints processing
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r--plugins/mod_mam/mod_mam.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index d4dae6cc..3e14c022 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -240,12 +240,12 @@ local function message_handler(event, c2s)
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?