From 5c5188119043fe2f6f3c16f1c1a57c3c1fcff2b5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 17 Oct 2016 23:23:36 +0200 Subject: mod_carbons: Fix logic presendence --- plugins/mod_carbons.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_carbons.lua b/plugins/mod_carbons.lua index 951645f8..4d8175ef 100644 --- a/plugins/mod_carbons.lua +++ b/plugins/mod_carbons.lua @@ -26,7 +26,7 @@ local function message_handler(event, c2s) 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 -- cgit v1.2.3