| 175 contact = purple_buddy_get_protocol_data( buddy ); |
175 contact = purple_buddy_get_protocol_data( buddy ); |
| 176 } |
176 } |
| 177 |
177 |
| 178 /* TODO: Check whether it's correct to call add_pair_html, |
178 /* TODO: Check whether it's correct to call add_pair_html, |
| 179 or if we should be using add_pair_plaintext */ |
179 or if we should be using add_pair_plaintext */ |
| 180 purple_notify_user_info_add_pair( info, _( "Display Name" ), profile->nickname ); |
180 purple_notify_user_info_add_pair_html( info, _( "Display Name" ), profile->nickname ); |
| 181 |
181 |
| 182 tmp = g_strdup_printf("%s (%i)", profile->birthday, calculateAge( profile->birthday ) ); |
182 tmp = g_strdup_printf("%s (%i)", profile->birthday, calculateAge( profile->birthday ) ); |
| 183 /* TODO: Check whether it's correct to call add_pair_html, |
183 /* TODO: Check whether it's correct to call add_pair_html, |
| 184 or if we should be using add_pair_plaintext */ |
184 or if we should be using add_pair_plaintext */ |
| 185 purple_notify_user_info_add_pair( info, _( "Birthday" ), tmp ); |
185 purple_notify_user_info_add_pair_html( info, _( "Birthday" ), tmp ); |
| 186 g_free( tmp ); |
186 g_free( tmp ); |
| 187 |
187 |
| 188 purple_notify_user_info_add_pair_plaintext( info, _( "Gender" ), profile->male ? _( "Male" ) : _( "Female" ) ); |
188 purple_notify_user_info_add_pair_plaintext( info, _( "Gender" ), profile->male ? _( "Male" ) : _( "Female" ) ); |
| 189 |
189 |
| 190 /* optional information */ |
190 /* optional information */ |
| 191 /* TODO: Check whether it's correct to call add_pair_html, |
191 /* TODO: Check whether it's correct to call add_pair_html, |
| 192 or if we should be using add_pair_plaintext */ |
192 or if we should be using add_pair_plaintext */ |
| 193 purple_notify_user_info_add_pair( info, _( "First Name" ), profile->firstname ); |
193 purple_notify_user_info_add_pair_html( info, _( "First Name" ), profile->firstname ); |
| 194 /* TODO: Check whether it's correct to call add_pair_html, |
194 /* TODO: Check whether it's correct to call add_pair_html, |
| 195 or if we should be using add_pair_plaintext */ |
195 or if we should be using add_pair_plaintext */ |
| 196 purple_notify_user_info_add_pair( info, _( "Last Name" ), profile->lastname ); |
196 purple_notify_user_info_add_pair_html( info, _( "Last Name" ), profile->lastname ); |
| 197 /* TODO: Check whether it's correct to call add_pair_html, |
197 /* TODO: Check whether it's correct to call add_pair_html, |
| 198 or if we should be using add_pair_plaintext */ |
198 or if we should be using add_pair_plaintext */ |
| 199 purple_notify_user_info_add_pair( info, _( "Country" ), profile->regcountry ); |
199 purple_notify_user_info_add_pair_html( info, _( "Country" ), profile->regcountry ); |
| 200 |
200 |
| 201 if ( *profile->aboutme ) { |
201 if ( *profile->aboutme ) { |
| 202 /* TODO: Check whether it's correct to call add_pair_html, |
202 /* TODO: Check whether it's correct to call add_pair_html, |
| 203 or if we should be using add_pair_plaintext */ |
203 or if we should be using add_pair_plaintext */ |
| 204 purple_notify_user_info_add_pair( info, _( "About Me" ), profile->aboutme ); |
204 purple_notify_user_info_add_pair_html( info, _( "About Me" ), profile->aboutme ); |
| 205 } |
205 } |
| 206 if ( *profile->whereami ) { |
206 if ( *profile->whereami ) { |
| 207 /* TODO: Check whether it's correct to call add_pair_html, |
207 /* TODO: Check whether it's correct to call add_pair_html, |
| 208 or if we should be using add_pair_plaintext */ |
208 or if we should be using add_pair_plaintext */ |
| 209 purple_notify_user_info_add_pair( info, _( "Where I Live" ), profile->whereami ); |
209 purple_notify_user_info_add_pair_html( info, _( "Where I Live" ), profile->whereami ); |
| 210 } |
210 } |
| 211 |
211 |
| 212 purple_notify_user_info_add_section_break( info ); |
212 purple_notify_user_info_add_section_break( info ); |
| 213 |
213 |
| 214 if ( contact ) { |
214 if ( contact ) { |
| 227 |
227 |
| 228 /* status message */ |
228 /* status message */ |
| 229 if ( contact->statusMsg ) { |
229 if ( contact->statusMsg ) { |
| 230 /* TODO: Check whether it's correct to call add_pair_html, |
230 /* TODO: Check whether it's correct to call add_pair_html, |
| 231 or if we should be using add_pair_plaintext */ |
231 or if we should be using add_pair_plaintext */ |
| 232 purple_notify_user_info_add_pair( info, _( "Status Message" ), contact->statusMsg ); |
232 purple_notify_user_info_add_pair_html( info, _( "Status Message" ), contact->statusMsg ); |
| 233 } |
233 } |
| 234 |
234 |
| 235 /* subscription type */ |
235 /* subscription type */ |
| 236 purple_notify_user_info_add_pair_plaintext( info, _( "Subscription" ), mxit_convert_subtype_to_name( contact->subtype ) ); |
236 purple_notify_user_info_add_pair_plaintext( info, _( "Subscription" ), mxit_convert_subtype_to_name( contact->subtype ) ); |
| 237 } |
237 } |
| 242 /* invite found */ |
242 /* invite found */ |
| 243 |
243 |
| 244 if ( contact->msg ) { |
244 if ( contact->msg ) { |
| 245 /* TODO: Check whether it's correct to call add_pair_html, |
245 /* TODO: Check whether it's correct to call add_pair_html, |
| 246 or if we should be using add_pair_plaintext */ |
246 or if we should be using add_pair_plaintext */ |
| 247 purple_notify_user_info_add_pair( info, _( "Invite Message" ), contact->msg ); |
247 purple_notify_user_info_add_pair_html( info, _( "Invite Message" ), contact->msg ); |
| 248 } |
248 } |
| 249 |
249 |
| 250 if ( contact->imgid ) { |
250 if ( contact->imgid ) { |
| 251 /* this invite has a avatar */ |
251 /* this invite has a avatar */ |
| 252 char* img_text; |
252 char* img_text; |
| 253 img_text = g_strdup_printf( "<img id='%d'>", contact->imgid ); |
253 img_text = g_strdup_printf( "<img id='%d'>", contact->imgid ); |
| 254 purple_notify_user_info_add_pair( info, _( "Photo" ), img_text ); |
254 purple_notify_user_info_add_pair_html( info, _( "Photo" ), img_text ); |
| 255 g_free(img_text); |
255 g_free(img_text); |
| 256 } |
256 } |
| 257 |
257 |
| 258 if ( contact->statusMsg ) { |
258 if ( contact->statusMsg ) { |
| 259 /* TODO: Check whether it's correct to call add_pair_html, |
259 /* TODO: Check whether it's correct to call add_pair_html, |
| 260 or if we should be using add_pair_plaintext */ |
260 or if we should be using add_pair_plaintext */ |
| 261 purple_notify_user_info_add_pair( info, _( "Status Message" ), contact->statusMsg ); |
261 purple_notify_user_info_add_pair_html( info, _( "Status Message" ), contact->statusMsg ); |
| 262 } |
262 } |
| 263 } |
263 } |
| 264 } |
264 } |
| 265 |
265 |
| 266 purple_notify_userinfo( session->con, username, info, NULL, NULL ); |
266 purple_notify_userinfo( session->con, username, info, NULL, NULL ); |