Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 9264:f13517b63e6c
MUC: Allow vCard4 requests trough
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 04 Sep 2018 18:00:43 +0200 |
parent | 9263:4285d1efaf03 |
child | 9265:585ef5c1b226 |
comparison
equal
deleted
inserted
replaced
9263:4285d1efaf03 | 9264:f13517b63e6c |
---|---|
738 stanza.attr.id = base64.encode(occupant.jid.."\0"..stanza.attr.id.."\0"..md5(from)); | 738 stanza.attr.id = base64.encode(occupant.jid.."\0"..stanza.attr.id.."\0"..md5(from)); |
739 end | 739 end |
740 stanza.attr.from, stanza.attr.to = current_nick, occupant.jid; | 740 stanza.attr.from, stanza.attr.to = current_nick, occupant.jid; |
741 log("debug", "%s sent private iq stanza to %s (%s)", from, to, occupant.jid); | 741 log("debug", "%s sent private iq stanza to %s (%s)", from, to, occupant.jid); |
742 local iq_ns = stanza.tags[1].attr.xmlns; | 742 local iq_ns = stanza.tags[1].attr.xmlns; |
743 if iq_ns == 'vcard-temp' or iq_ns == "http://jabber.org/protocol/pubsub" then | 743 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 |
744 stanza.attr.to = jid_bare(stanza.attr.to); | 744 stanza.attr.to = jid_bare(stanza.attr.to); |
745 end | 745 end |
746 self:route_stanza(stanza); | 746 self:route_stanza(stanza); |
747 stanza.attr.from, stanza.attr.to, stanza.attr.id = from, to, id; | 747 stanza.attr.from, stanza.attr.to, stanza.attr.id = from, to, id; |
748 return true; | 748 return true; |