Comparison

plugins/mod_carbons.lua @ 7672:27f5db07bec9

mod_carbons: Fix inverted logic (Thanks Ge0rg)}
author Kim Alvefur <zash@zash.se>
date Fri, 23 Sep 2016 16:26:09 +0200
parent 7671:07fb4a8c4c89
child 7698:edacd0bef0e8
comparison
equal deleted inserted replaced
7671:07fb4a8c4c89 7672:27f5db07bec9
65 module:log("debug", "Message tagged private, ignoring"); 65 module:log("debug", "Message tagged private, ignoring");
66 return 66 return
67 elseif stanza:get_child("no-copy", "urn:xmpp:hints") then 67 elseif stanza:get_child("no-copy", "urn:xmpp:hints") then
68 module:log("debug", "Message has no-copy hint, ignoring"); 68 module:log("debug", "Message has no-copy hint, ignoring");
69 return 69 return
70 elseif not c2s and bare_jid ~= orig_from and stanza:get_child("x", "http://jabber.org/protocol/muc#user") then 70 elseif not c2s and bare_jid == orig_from and stanza:get_child("x", "http://jabber.org/protocol/muc#user") then
71 module:log("debug", "MUC PM, ignoring"); 71 module:log("debug", "MUC PM, ignoring");
72 return 72 return
73 end 73 end
74 74
75 -- Create the carbon copy and wrap it as per the Stanza Forwarding XEP 75 -- Create the carbon copy and wrap it as per the Stanza Forwarding XEP