Software /
code /
prosody
Comparison
plugins/mod_carbons.lua @ 7671:07fb4a8c4c89
mod_carbons: Compare with correct variable
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Sep 2016 14:06:25 +0200 |
parent | 7670:2be85cb3bc66 |
child | 7672:27f5db07bec9 |
comparison
equal
deleted
inserted
replaced
7670:2be85cb3bc66 | 7671:07fb4a8c4c89 |
---|---|
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 orig_from ~= 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 |