changeset 2338:51beecac93c2

mod_carbons: Fix logic presendence
author Kim Alvefur <zash@zash.se>
date Tue, 18 Oct 2016 14:59:02 +0200
parents c6e86b74f62e
children 443d9dae3216
files mod_carbons/mod_carbons.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_carbons/mod_carbons.lua	Mon Oct 17 13:03:38 2016 +0000
+++ b/mod_carbons/mod_carbons.lua	Tue Oct 18 14:59:02 2016 +0200
@@ -33,7 +33,7 @@
 	local orig_from = stanza.attr.from;
 	local orig_to = stanza.attr.to;
 
-	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
 		return -- Only chat type messages
 	end