Software /
code /
prosody-modules
Comparison
mod_carbons/mod_carbons.lua @ 1151:28d4b58bcc3b
mod_carbons: Add support for XEP-0334: Message Processing Hints
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 11 Aug 2013 23:37:26 +0200 |
parent | 900:aca1c5eb0508 |
child | 1167:8ceab2331216 |
comparison
equal
deleted
inserted
replaced
1150:296820f18ba6 | 1151:28d4b58bcc3b |
---|---|
82 return tag.attr.xmlns == xmlns_carbons | 82 return tag.attr.xmlns == xmlns_carbons |
83 and tag.name == "private" and tag or nil; | 83 and tag.name == "private" and tag or nil; |
84 end); | 84 end); |
85 module:log("debug", "Message tagged private, ignoring"); | 85 module:log("debug", "Message tagged private, ignoring"); |
86 return | 86 return |
87 elseif stanza:get_child("no-copy", "urn:xmpp:hints") then | |
88 module:log("debug", "Message has no-copy hint, ignoring"); | |
89 return | |
87 end | 90 end |
88 | 91 |
89 -- Create the carbon copy and wrap it as per the Stanza Forwarding XEP | 92 -- Create the carbon copy and wrap it as per the Stanza Forwarding XEP |
90 local copy = st.clone(stanza); | 93 local copy = st.clone(stanza); |
91 copy.attr.xmlns = "jabber:client"; | 94 copy.attr.xmlns = "jabber:client"; |