diff options
author | Kim Alvefur <zash@zash.se> | 2016-10-17 23:23:36 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-10-17 23:23:36 +0200 |
commit | bba90ea30affabccdc2d3a011ef1ef8276fca759 (patch) | |
tree | 707b7f6ed92fef8fcd2476036fc02ec46b11ecfd /plugins | |
parent | ffbc38cfa3aafd8cfeae06a4396d5a074ffebc7e (diff) | |
download | prosody-bba90ea30affabccdc2d3a011ef1ef8276fca759.tar.gz prosody-bba90ea30affabccdc2d3a011ef1ef8276fca759.zip |
mod_carbons: Fix logic presendence
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_carbons.lua | 2 |
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 |