Mercurial > pidgin.yaz
changeset 10198:137a880153ba
[gaim-migrate @ 11315]
Get oscar ready for available messages, and make invisible a unique status
for now, so that it works consistently in the GUI.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 17 Nov 2004 01:40:31 +0000 |
parents | 7369bf2bf593 |
children | 76e296e16def |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 12 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Wed Nov 17 01:32:06 2004 +0000 +++ b/src/protocols/oscar/oscar.c Wed Nov 17 01:40:31 2004 +0000 @@ -4248,7 +4248,7 @@ * too quickly. */ if (od->getinfotimer == 0) - od->getinfotimer = gaim_timeout_add(1200, gaim_reqinfo_timeout_cb, sess); + od->getinfotimer = gaim_timeout_add(1500, gaim_reqinfo_timeout_cb, sess); return 1; } @@ -5572,10 +5572,11 @@ aim_setextstatus(od->sess, AIM_ICQ_STATE_NORMAL); aim_locate_setprofile(od->sess, NULL, NULL, 0, NULL, "", 0); -#if 0 - /* Set an available message */ - aim_srv_setavailmsg(od->sess, text); -#endif + + text_html = gaim_status_get_attr_string(status, "message"); + if (text_html != NULL) { + aim_srv_setavailmsg(od->sess, text_html); + } } else if (primitive == GAIM_STATUS_AWAY) { aim_setextstatus(od->sess, AIM_ICQ_STATE_NORMAL); @@ -6865,9 +6866,11 @@ _("Online"), FALSE, FALSE, FALSE); status_types = g_list_append(status_types, type); - type = gaim_status_type_new_full(GAIM_STATUS_AVAILABLE, - OSCAR_STATUS_ID_AVAILABLE, - _("Available"), TRUE, TRUE, FALSE); + type = gaim_status_type_new_with_attrs(GAIM_STATUS_AVAILABLE, + OSCAR_STATUS_ID_AVAILABLE, + _("Available"), TRUE, TRUE, FALSE, + "message", _("Message"), + gaim_value_new(GAIM_TYPE_STRING), NULL); status_types = g_list_append(status_types, type); type = gaim_status_type_new_with_attrs(GAIM_STATUS_AWAY, @@ -6879,7 +6882,7 @@ type = gaim_status_type_new_full(GAIM_STATUS_HIDDEN, OSCAR_STATUS_ID_INVISIBLE, - _("Invisible"), TRUE, TRUE, TRUE); + _("Invisible"), TRUE, TRUE, FALSE); status_types = g_list_append(status_types, type); if (aim_sn_is_icq(gaim_account_get_username(account)) == FALSE )