Mercurial > pidgin
comparison libpurple/protocols/myspace/user.c @ 25880:be87547aa431
merge of '0bf6462dd433df38943094bbed0393698d91a037'
and '9c4b346f6536ab35c06e2c6cabb905bae60c420d'
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 13 Dec 2008 21:13:04 +0000 |
parents | 1260a3fb60f4 65cfc59858cf |
children | f8dbd57cf635 |
comparison
equal
deleted
inserted
replaced
25879:fea25a73edba | 25880:be87547aa431 |
---|---|
102 if (user->username) { | 102 if (user->username) { |
103 purple_notify_user_info_add_pair(user_info, _("User"), user->username); | 103 purple_notify_user_info_add_pair(user_info, _("User"), user->username); |
104 } | 104 } |
105 | 105 |
106 uid = purple_blist_node_get_int((PurpleBlistNode *)user->buddy, "UserID"); | 106 uid = purple_blist_node_get_int((PurpleBlistNode *)user->buddy, "UserID"); |
107 | |
108 if (full) { | |
109 /* TODO: link to username, if available */ | |
110 if (uid) { | |
111 char *profile = g_strdup_printf("<a href=\"http://myspace.com/%d\">http://myspace.com/%d</a>", | |
112 uid, uid); | |
113 purple_notify_user_info_add_pair(user_info, _("Profile"), profile); | |
114 g_free(profile); | |
115 } | |
116 } | |
117 | |
118 | 107 |
119 /* a/s/l...the vitals */ | 108 /* a/s/l...the vitals */ |
120 if (user->age) { | 109 if (user->age) { |
121 char age[16]; | 110 char age[16]; |
122 g_snprintf(age, sizeof(age), "%d", user->age); | 111 g_snprintf(age, sizeof(age), "%d", user->age); |