Software /
code /
prosody
Comparison
plugins/mod_carbons.lua @ 10777:3695904d2854 0.11
mod_carbons: Fix handling of incoming MUC PMs #1540
27f5db07bec9 fixed this wrong. The code is supposed to check if the
stanza is NOT sent to your bare JID. A MUC PM is always sent to your
full JID. Hopefully nobody sends MUC invites to full JIDs, because those
would be skipped by this as well.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Apr 2020 20:39:39 +0200 |
parent | 8354:b41947a0fc0c |
child | 10778:a62b981db0e2 |
comparison
equal
deleted
inserted
replaced
10776:8f3b87eaec49 | 10777:3695904d2854 |
---|---|
67 module:log("debug", "Message tagged private, ignoring"); | 67 module:log("debug", "Message tagged private, ignoring"); |
68 return | 68 return |
69 elseif stanza:get_child("no-copy", "urn:xmpp:hints") then | 69 elseif stanza:get_child("no-copy", "urn:xmpp:hints") then |
70 module:log("debug", "Message has no-copy hint, ignoring"); | 70 module:log("debug", "Message has no-copy hint, ignoring"); |
71 return | 71 return |
72 elseif not c2s and bare_jid == orig_from and stanza:get_child("x", "http://jabber.org/protocol/muc#user") then | 72 elseif not c2s and bare_jid ~= orig_to and stanza:get_child("x", "http://jabber.org/protocol/muc#user") then |
73 module:log("debug", "MUC PM, ignoring"); | 73 module:log("debug", "MUC PM, ignoring"); |
74 return | 74 return |
75 end | 75 end |
76 | 76 |
77 -- Create the carbon copy and wrap it as per the Stanza Forwarding XEP | 77 -- Create the carbon copy and wrap it as per the Stanza Forwarding XEP |