Mercurial > prosody-modules
comparison mod_carbons/mod_carbons.lua @ 2308:1d05491b3e84
mod_carbons: Compare with correct variable
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Sep 2016 14:05:51 +0200 |
parents | ad7f87bd30c8 |
children | feebb38c670d |
comparison
equal
deleted
inserted
replaced
2307:ad7f87bd30c8 | 2308:1d05491b3e84 |
---|---|
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 orig_from ~= 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 |