equal
deleted
inserted
replaced
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; |