util.muc, mod_muc: Commented rewriting of vCard requests' recipients' JID from full to bare, and marked it as a TODO

Sun, 14 Jun 2009 17:33:22 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sun, 14 Jun 2009 17:33:22 +0500
changeset 1352
aad3ebce4fcc
parent 1351
b58ff7ed5676
child 1353
5f169bd454ca

util.muc, mod_muc: Commented rewriting of vCard requests' recipients' JID from full to bare, and marked it as a TODO

plugins/mod_muc.lua file | annotate | diff | comparison | revisions
util/muc.lua file | annotate | diff | comparison | revisions
--- 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
--- 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

mercurial