# HG changeset patch # User Kim Alvefur # Date 1449666011 -3600 # Node ID ca33cca2e0287a714d10c60644618878dfc9bce1 # Parent 1a5be0ecc8760feba0a5e03f50b95b7a227f48d2 mod_mam: Clarify condition presendence diff -r 1a5be0ecc876 -r ca33cca2e028 mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Wed Nov 25 14:40:43 2015 +0100 +++ b/mod_mam/mod_mam.lua Wed Dec 09 14:00:11 2015 +0100 @@ -224,7 +224,7 @@ -- Stanza without 'to' are treated as if it was to their own bare jid -- We store chat messages or normal messages that have a body - if not(orig_type == "chat" or orig_type == "normal" and stanza:get_child("body") ) then + if not(orig_type == "chat" or (orig_type == "normal" and stanza:get_child("body")) ) then module:log("debug", "Not archiving stanza: %s (type)", stanza:top_tag()); return; end