Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/xmpp.c @ 1720:98d99485d276
Do not use the full JID for vcard requests (Hermitifier)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 25 Feb 2010 21:26:15 +0100 |
parents | c12455fec611 |
children | 8cfc2a386b1f |
comparison
equal
deleted
inserted
replaced
1719:f3c5e1175b22 | 1720:98d99485d276 |
---|---|
252 xmlns = NS_VCARD; | 252 xmlns = NS_VCARD; |
253 strreqtype = "vCard"; | 253 strreqtype = "vCard"; |
254 } else | 254 } else |
255 return; | 255 return; |
256 | 256 |
257 if (strchr(fjid, JID_RESOURCE_SEPARATOR)) { | 257 if (strchr(fjid, JID_RESOURCE_SEPARATOR) || reqtype == iqreq_vcard) { |
258 // This is a full JID | 258 // This is a full JID |
259 // Or a vCard request, resource should have been stripped before | |
259 xmpp_iq_request(fjid, xmlns); | 260 xmpp_iq_request(fjid, xmlns); |
260 scr_LogPrint(LPRINT_NORMAL, "Sent %s request to <%s>", strreqtype, fjid); | 261 scr_LogPrint(LPRINT_NORMAL, "Sent %s request to <%s>", strreqtype, fjid); |
261 return; | 262 return; |
262 } | 263 } |
263 | 264 |