# HG changeset patch # User Waqas Hussain # Date 1244982802 -18000 # Node ID aad3ebce4fcc8d089838dbd0de843a58189b059c # Parent b58ff7ed567618b6a82673a37de1a34dd84d3132 util.muc, mod_muc: Commented rewriting of vCard requests' recipients' JID from full to bare, and marked it as a TODO diff -r b58ff7ed5676 -r aad3ebce4fcc plugins/mod_muc.lua --- a/plugins/mod_muc.lua Sun Jun 14 16:31:51 2009 +0500 +++ b/plugins/mod_muc.lua Sun Jun 14 17:33:22 2009 +0500 @@ -333,7 +333,7 @@ if o_data then log("debug", "%s sent private stanza to %s (%s)", from, to, o_data.jid); local jid = o_data.jid; - if stanza.name=='iq' and type=='get' and stanza.tags[1].attr.xmlns == 'vcard-temp' then jid = jid_bare(jid); end + -- TODO if stanza.name=='iq' and type=='get' and stanza.tags[1].attr.xmlns == 'vcard-temp' then jid = jid_bare(jid); end stanza.attr.to, stanza.attr.from = jid, current_nick; core_route_stanza(component, stanza); elseif type ~= "error" and type ~= "result" then -- recipient not in room diff -r b58ff7ed5676 -r aad3ebce4fcc util/muc.lua --- a/util/muc.lua Sun Jun 14 16:31:51 2009 +0500 +++ b/util/muc.lua Sun Jun 14 17:33:22 2009 +0500 @@ -274,7 +274,7 @@ if o_data then log("debug", "%s sent private stanza to %s (%s)", from, to, o_data.jid); local jid = o_data.jid; - if stanza.name=='iq' and type=='get' and stanza.tags[1].attr.xmlns == 'vcard-temp' then jid = jid_bare(jid); end + -- TODO if stanza.name=='iq' and type=='get' and stanza.tags[1].attr.xmlns == 'vcard-temp' then jid = jid_bare(jid); end stanza.attr.to, stanza.attr.from = jid, current_nick; self:route_stanza(stanza); elseif type ~= "error" and type ~= "result" then -- recipient not in room