# HG changeset patch # User Kim Alvefur # Date 1587926379 -7200 # Node ID 3695904d2854d187538e405d49edd8f285969910 # Parent 8f3b87eaec498bde9898e1781d15077a5c16b4ec 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. diff -r 8f3b87eaec49 -r 3695904d2854 plugins/mod_carbons.lua --- a/plugins/mod_carbons.lua Sat Apr 25 20:55:00 2020 +0200 +++ b/plugins/mod_carbons.lua Sun Apr 26 20:39:39 2020 +0200 @@ -69,7 +69,7 @@ elseif stanza:get_child("no-copy", "urn:xmpp:hints") then module:log("debug", "Message has no-copy hint, ignoring"); return - elseif not c2s and bare_jid == orig_from and stanza:get_child("x", "http://jabber.org/protocol/muc#user") then + elseif not c2s and bare_jid ~= orig_to and stanza:get_child("x", "http://jabber.org/protocol/muc#user") then module:log("debug", "MUC PM, ignoring"); return end