plugins/mod_carbons.lua
branch0.11
changeset 10781 3695904d2854
parent 8357 b41947a0fc0c
child 10782 a62b981db0e2
--- 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