Changeset

7698:edacd0bef0e8

mod_carbons: Fix logic presendence
author Kim Alvefur <zash@zash.se>
date Mon, 17 Oct 2016 23:23:36 +0200
parents 7696:1c410b4f3a58
children 7699:9c40d0be2295
files plugins/mod_carbons.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_carbons.lua	Sun Oct 16 00:36:05 2016 +0200
+++ b/plugins/mod_carbons.lua	Mon Oct 17 23:23:36 2016 +0200
@@ -26,7 +26,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