comparison mod_mam/mod_mam.lua @ 1770:2c43e81236a3

mod_mam: Fix message hints, it's no-permanent-*storage*, not ..-store
author Kim Alvefur <zash@zash.se>
date Thu, 02 Jul 2015 20:20:31 +0200
parents 5734a6199938
children 398a007da84e
comparison
equal deleted inserted replaced
1769:f2705465cab4 1770:2c43e81236a3
228 or orig_type == "headline" 228 or orig_type == "headline"
229 or orig_type == "groupchat" 229 or orig_type == "groupchat"
230 -- or that don't have a <body/> 230 -- or that don't have a <body/>
231 or not stanza:get_child("body") 231 or not stanza:get_child("body")
232 -- or if hints suggest we shouldn't 232 -- or if hints suggest we shouldn't
233 or stanza:get_child("no-permanent-store", "urn:xmpp:hints") 233 or stanza:get_child("no-permanent-storage", "urn:xmpp:hints")
234 or stanza:get_child("no-store", "urn:xmpp:hints") then 234 or stanza:get_child("no-store", "urn:xmpp:hints") then
235 module:log("debug", "Not archiving stanza: %s (content)", stanza:top_tag()); 235 module:log("debug", "Not archiving stanza: %s (content)", stanza:top_tag());
236 return; 236 return;
237 end 237 end
238 238