Changeset

9264:f13517b63e6c

MUC: Allow vCard4 requests trough
author Kim Alvefur <zash@zash.se>
date Tue, 04 Sep 2018 18:00:43 +0200
parents 9263:4285d1efaf03
children 9265:585ef5c1b226
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);