diff 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
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp.c	Thu Feb 25 21:21:43 2010 +0100
+++ b/mcabber/mcabber/xmpp.c	Thu Feb 25 21:26:15 2010 +0100
@@ -254,8 +254,9 @@
   } else
     return;
 
-  if (strchr(fjid, JID_RESOURCE_SEPARATOR)) {
+  if (strchr(fjid, JID_RESOURCE_SEPARATOR) || reqtype == iqreq_vcard) {
     // This is a full JID
+    // Or a vCard request, resource should have been stripped before
     xmpp_iq_request(fjid, xmlns);
     scr_LogPrint(LPRINT_NORMAL, "Sent %s request to <%s>", strreqtype, fjid);
     return;