# HG changeset patch # User Kim Alvefur # Date 1476739416 -7200 # Node ID edacd0bef0e8d40b46fc13f304e52742554e2e9a # Parent 1c410b4f3a580f1f05ecf0f96449c0e85ed367cf mod_carbons: Fix logic presendence diff -r 1c410b4f3a58 -r edacd0bef0e8 plugins/mod_carbons.lua --- 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