Changeset

1352:aad3ebce4fcc

util.muc, mod_muc: Commented rewriting of vCard requests' recipients' JID from full to bare, and marked it as a TODO
author Waqas Hussain <waqas20@gmail.com>
date Sun, 14 Jun 2009 17:33:22 +0500
parents 1351:b58ff7ed5676
children 1353:5f169bd454ca
files plugins/mod_muc.lua util/muc.lua
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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