Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 2988:9287c9465c50
[gaim-migrate @ 3001]
I am not a pronoun.
committer: Tailor Script <tailor@pidgin.im>
author | Adam Fritzler <mid@auk.cx> |
---|---|
date | Sun, 24 Feb 2002 00:54:23 +0000 |
parents | aebf1d505e1f |
children | ba033cd8cd97 |
comparison
equal
deleted
inserted
replaced
2987:634a252a000a | 2988:9287c9465c50 |
---|---|
1676 _("<br><BODY BGCOLOR=WHITE><hr><I>Legend:</I><br><br>" | 1676 _("<br><BODY BGCOLOR=WHITE><hr><I>Legend:</I><br><br>" |
1677 "<IMG SRC=\"free_icon.gif\"> : Normal AIM User<br>" | 1677 "<IMG SRC=\"free_icon.gif\"> : Normal AIM User<br>" |
1678 "<IMG SRC=\"aol_icon.gif\"> : AOL User <br>" | 1678 "<IMG SRC=\"aol_icon.gif\"> : AOL User <br>" |
1679 "<IMG SRC=\"dt_icon.gif\"> : Trial AIM User <br>" | 1679 "<IMG SRC=\"dt_icon.gif\"> : Trial AIM User <br>" |
1680 "<IMG SRC=\"admin_icon.gif\"> : Administrator <br>" | 1680 "<IMG SRC=\"admin_icon.gif\"> : Administrator <br>" |
1681 "<IMG SRC=\"ab_icon.gif\"> : ActiveBuddy <br>")); | 1681 "<IMG SRC=\"ab_icon.gif\"> : ActiveBuddy Interactive Agent<br>")); |
1682 | 1682 |
1683 if (info->membersince) | 1683 if (info->membersince) |
1684 asc = g_strdup_printf("Member Since : <B>%s</B><BR>\n", | 1684 asc = g_strdup_printf("Member Since : <B>%s</B><BR>\n", |
1685 asctime(localtime(&info->membersince))); | 1685 asctime(localtime(&info->membersince))); |
1686 else | 1686 else |
2449 aim_bos_setprofile(odata->sess, odata->conn, inforeal, g->away ? NULL : "", gaim_caps); | 2449 aim_bos_setprofile(odata->sess, odata->conn, inforeal, g->away ? NULL : "", gaim_caps); |
2450 } | 2450 } |
2451 | 2451 |
2452 static void oscar_set_away(struct gaim_connection *gc, char *state, char *message) { | 2452 static void oscar_set_away(struct gaim_connection *gc, char *state, char *message) { |
2453 struct oscar_data *od = (struct oscar_data *)gc->proto_data; | 2453 struct oscar_data *od = (struct oscar_data *)gc->proto_data; |
2454 char away[1025]; | 2454 char away[4096]; |
2455 if (!od->icq) { | 2455 if (!od->icq) { |
2456 if (message) | 2456 if (message) |
2457 g_snprintf(away, sizeof(away), "%s", message); | 2457 g_snprintf(away, sizeof(away), "%s", message); |
2458 aim_bos_setprofile(od->sess, od->conn, NULL, message ? away : "", gaim_caps); | 2458 aim_bos_setprofile(od->sess, od->conn, NULL, message ? away : "", gaim_caps); |
2459 if (gc->away) | 2459 if (gc->away) |
2460 g_free (gc->away); | 2460 g_free (gc->away); |
2461 gc->away = NULL; | 2461 gc->away = NULL; |
2462 if (message) { | 2462 if (message) { |
2463 if (strlen(message) > 1024) | 2463 if (strlen(message) > sizeof(away)) |
2464 do_error_dialog("Maximum away length (1024) exceeded, truncating", | 2464 do_error_dialog("Maximum away length exceeded, truncating", |
2465 "Info Too Long"); | 2465 "Info Too Long"); |
2466 gc->away = g_strdup (message); | 2466 gc->away = g_strdup (message); |
2467 } | 2467 } |
2468 return; | 2468 return; |
2469 } | 2469 } |