# HG changeset patch # User Kim Alvefur # Date 1476795542 -7200 # Node ID 51beecac93c2bd09d8344127f648ce96b49435e1 # Parent c6e86b74f62ec689feb2b0e20d2e16de817b7e7a mod_carbons: Fix logic presendence diff -r c6e86b74f62e -r 51beecac93c2 mod_carbons/mod_carbons.lua --- 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