MUC: Allow vCard4 requests trough
authorKim Alvefur <zash@zash.se>
Tue, 04 Sep 2018 18:00:43 +0200
changeset 9267 f13517b63e6c
parent 9266 4285d1efaf03
child 9268 585ef5c1b226
MUC: Allow vCard4 requests trough
plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Tue Sep 04 11:59:17 2018 +0100
+++ b/plugins/muc/muc.lib.lua	Tue Sep 04 18:00:43 2018 +0200
@@ -740,7 +740,7 @@
 		stanza.attr.from, stanza.attr.to = current_nick, occupant.jid;
 		log("debug", "%s sent private iq stanza to %s (%s)", from, to, occupant.jid);
 		local iq_ns = stanza.tags[1].attr.xmlns;
-		if iq_ns == 'vcard-temp' or iq_ns == "http://jabber.org/protocol/pubsub" then
+		if iq_ns == 'vcard-temp' or iq_ns == "http://jabber.org/protocol/pubsub" or iq_ns == "urn:ietf:params:xml:ns:vcard-4.0" then
 			stanza.attr.to = jid_bare(stanza.attr.to);
 		end
 		self:route_stanza(stanza);