changeset 2078:0d53e0eb4456

[gaim-migrate @ 2088] DESC in vCard. committer: Tailor Script <tailor@pidgin.im>
author Adam Fritzler <mid@auk.cx>
date Wed, 18 Jul 2001 20:48:08 +0000
parents 824dc84315c7
children d257f2ee8765
files plugins/jabber/jabber.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/jabber/jabber.c	Tue Jul 17 19:19:42 2001 +0000
+++ b/plugins/jabber/jabber.c	Wed Jul 18 20:48:08 2001 +0000
@@ -922,7 +922,7 @@
 
 static void jabber_handlevcard(gjconn j, xmlnode querynode, char *from) {
 	char buf[1024];
-	char *fn, *url, *email, *nickname, *status;
+	char *fn, *url, *email, *nickname, *status, *desc;
 	jid who;
 	char *buddy;
 	struct jabber_data *jd = GJ_GC(j)->proto_data;
@@ -935,6 +935,7 @@
 	url = xmlnode_get_tag_data(querynode, "URL");
 	email = xmlnode_get_tag_data(querynode, "EMAIL");
 	nickname = xmlnode_get_tag_data(querynode, "NICKNAME");
+	desc = xmlnode_get_tag_data(querynode, "DESC");
 	status = g_hash_table_lookup(jd->hash, buddy);
 	if (!status)
 		status = "Online";
@@ -951,7 +952,9 @@
 		at += g_snprintf(buf + at, sizeof(buf) - at,
 				"<B>Email:</B> <A HREF=\"mailto:%s\">%s</A><BR>", email, email);
 	at += g_snprintf(buf + at, sizeof(buf) - at, "<B>Status:</B> %s\n", status);
-	
+	if (desc)
+		at += g_snprintf(buf + at, sizeof(buf) - at, "<HR>%s<br>\n", desc);
+
 	g_show_info_text(buf);
 	g_free(buddy);
 }