Mercurial > pidgin
comparison src/oscar.c @ 1537:2157d91c2eb9
[gaim-migrate @ 1547]
HO-la!
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 06 Mar 2001 15:26:51 +0000 |
parents | 1e2cc8c8bf3c |
children | 992871bf2649 |
comparison
equal
deleted
inserted
replaced
1536:3a9f11c9278b | 1537:2157d91c2eb9 |
---|---|
1344 do_error_dialog(buf, _("Gaim - Error")); | 1344 do_error_dialog(buf, _("Gaim - Error")); |
1345 | 1345 |
1346 return 1; | 1346 return 1; |
1347 } | 1347 } |
1348 | 1348 |
1349 static char *images(int flags) { | |
1350 static char buf[1024]; | |
1351 g_snprintf(buf, sizeof(buf), "%s%s%s%s", | |
1352 (flags & AIM_FLAG_UNCONFIRMED) ? "<IMG SRC=\"dt_icon.gif\">" : "", | |
1353 (flags & AIM_FLAG_AOL) ? "<IMG SRC=\"aol_icon.gif\">" : "", | |
1354 (flags & AIM_FLAG_ADMINISTRATOR) ? "<IMG SRC=\"admin_icon.gif\">" : "", | |
1355 (flags & AIM_FLAG_FREE) ? "<IMG SRC=\"free_icon.gif\">" : ""); | |
1356 return buf; | |
1357 } | |
1358 | |
1349 int gaim_parse_user_info(struct aim_session_t *sess, | 1359 int gaim_parse_user_info(struct aim_session_t *sess, |
1350 struct command_rx_struct *command, ...) { | 1360 struct command_rx_struct *command, ...) { |
1351 struct aim_userinfo_s *info; | 1361 struct aim_userinfo_s *info; |
1352 char *prof_enc = NULL, *prof = NULL; | 1362 char *prof_enc = NULL, *prof = NULL; |
1353 u_short infotype; | 1363 u_short infotype; |
1370 do_error_dialog(buf, _("Gaim - Error")); | 1380 do_error_dialog(buf, _("Gaim - Error")); |
1371 plugin_event(event_error, (void *)977, 0, 0, 0); | 1381 plugin_event(event_error, (void *)977, 0, 0, 0); |
1372 return 1; | 1382 return 1; |
1373 } | 1383 } |
1374 | 1384 |
1375 snprintf(buf, sizeof buf, _("Username : <B>%s</B>\n<BR>" | 1385 g_snprintf(buf, sizeof buf, _("Username : <B>%s</B> %s <BR>\n" |
1376 "Warning Level : <B>%d %%</B>\n<BR>" | 1386 "Warning Level : <B>%d %%</B><BR>\n" |
1377 "Online Since : <B>%s</B><BR>" | 1387 "Online Since : <B>%s</B><BR>\n" |
1378 "Idle Minutes : <B>%d</B>\n<BR><HR><BR>" | 1388 "Idle Minutes : <B>%d</B>\n<BR>\n<HR><BR>\n" |
1379 "%s\n"), | 1389 "%s" |
1380 info->sn, | 1390 "<br><hr><I>Legend:</I><br><br>" |
1391 "<IMG SRC=\"free_icon.gif\"> : Normal AIM User<br>" | |
1392 "<IMG SRC=\"aol_icon.gif\"> : AOL User <br>" | |
1393 "<IMG SRC=\"dt_icon.gif\"> : Trial AIM User <br>" | |
1394 "<IMG SRC=\"admin_icon.gif\"> : Administrator"), | |
1395 info->sn, images(info->flags), | |
1381 info->warnlevel/10, | 1396 info->warnlevel/10, |
1382 asctime(localtime(&info->onlinesince)), | 1397 asctime(localtime(&info->onlinesince)), |
1383 info->idletime, | 1398 info->idletime, |
1384 infotype == AIM_GETINFO_GENERALINFO ? prof : | 1399 infotype == AIM_GETINFO_GENERALINFO ? prof : |
1385 away_subs(prof, gc->username)); | 1400 away_subs(prof, gc->username)); |