diff mod_carbons/mod_carbons.lua @ 2338:51beecac93c2

mod_carbons: Fix logic presendence
author Kim Alvefur <zash@zash.se>
date Tue, 18 Oct 2016 14:59:02 +0200
parents feebb38c670d
children b41957bf4fd3
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