comparison mod_carbons/mod_carbons.lua @ 2309:feebb38c670d

mod_carbons: Fix inverted logic (Thanks Ge0rg)
author Kim Alvefur <zash@zash.se>
date Fri, 23 Sep 2016 16:23:14 +0200
parents 1d05491b3e84
children 51beecac93c2
comparison
equal deleted inserted replaced
2308:1d05491b3e84 2309:feebb38c670d
72 module:log("debug", "Message tagged private, ignoring"); 72 module:log("debug", "Message tagged private, ignoring");
73 return 73 return
74 elseif stanza:get_child("no-copy", "urn:xmpp:hints") then 74 elseif stanza:get_child("no-copy", "urn:xmpp:hints") then
75 module:log("debug", "Message has no-copy hint, ignoring"); 75 module:log("debug", "Message has no-copy hint, ignoring");
76 return 76 return
77 elseif not c2s and bare_jid ~= orig_from and stanza:get_child("x", "http://jabber.org/protocol/muc#user") then 77 elseif not c2s and bare_jid == orig_from and stanza:get_child("x", "http://jabber.org/protocol/muc#user") then
78 module:log("debug", "MUC PM, ignoring"); 78 module:log("debug", "MUC PM, ignoring");
79 return 79 return
80 end 80 end
81 81
82 -- Create the carbon copy and wrap it as per the Stanza Forwarding XEP 82 -- Create the carbon copy and wrap it as per the Stanza Forwarding XEP