aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_carbons.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-10-17 23:23:36 +0200
committerKim Alvefur <zash@zash.se>2016-10-17 23:23:36 +0200
commit5c5188119043fe2f6f3c16f1c1a57c3c1fcff2b5 (patch)
tree707b7f6ed92fef8fcd2476036fc02ec46b11ecfd /plugins/mod_carbons.lua
parent176661cc07459d4fc656e711b7c85c3f1703a1d0 (diff)
downloadprosody-5c5188119043fe2f6f3c16f1c1a57c3c1fcff2b5.tar.gz
prosody-5c5188119043fe2f6f3c16f1c1a57c3c1fcff2b5.zip
mod_carbons: Fix logic presendence
Diffstat (limited to 'plugins/mod_carbons.lua')
-rw-r--r--plugins/mod_carbons.lua2
1 files changed, 1 insertions, 1 deletions
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