Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 1003:c8b1a52b2fd6
Initial VCard retrieval support
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 07 Nov 2006 22:43:17 +0100 |
parents | dff25377c11f |
children | bbf53cd43fbb |
comparison
equal
deleted
inserted
replaced
1002:dd9e7eb5f8a8 | 1003:c8b1a52b2fd6 |
---|---|
923 request_fn = &request_version; | 923 request_fn = &request_version; |
924 strreqtype = "version"; | 924 strreqtype = "version"; |
925 } else if (reqtype == iqreq_time) { | 925 } else if (reqtype == iqreq_time) { |
926 request_fn = &request_time; | 926 request_fn = &request_time; |
927 strreqtype = "time"; | 927 strreqtype = "time"; |
928 } else if (reqtype == iqreq_vcard) { | |
929 // Special case | |
928 } else | 930 } else |
929 return; | 931 return; |
932 | |
933 // vCard request | |
934 if (reqtype == iqreq_vcard) { | |
935 char *bjid = jidtodisp(jid); | |
936 request_vcard(bjid); | |
937 scr_LogPrint(LPRINT_NORMAL, "Sent vCard request to <%s>", bjid); | |
938 g_free(bjid); | |
939 return; | |
940 } | |
930 | 941 |
931 if (strchr(jid, JID_RESOURCE_SEPARATOR)) { | 942 if (strchr(jid, JID_RESOURCE_SEPARATOR)) { |
932 // This is a full JID | 943 // This is a full JID |
933 (*request_fn)(jid); | 944 (*request_fn)(jid); |
934 scr_LogPrint(LPRINT_NORMAL, "Sent %s request to <%s>", strreqtype, jid); | 945 scr_LogPrint(LPRINT_NORMAL, "Sent %s request to <%s>", strreqtype, jid); |