diff mod_mam/mod_mam.lua @ 1957:ca33cca2e028

mod_mam: Clarify condition presendence
author Kim Alvefur <zash@zash.se>
date Wed, 09 Dec 2015 14:00:11 +0100
parents 4c2146f5bf39
children b5adfe72709b
line wrap: on
line diff
--- 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