# HG changeset patch # User Eric Warmenhoven # Date 979200155 0 # Node ID 65f4a032502244c3f80476f80fce4e3f1a2f14d2 # Parent bf041349b11eecf66dfe587356de59962231d8ad [gaim-migrate @ 1412] whoops. this should work better. committer: Tailor Script diff -r bf041349b11e -r 65f4a0325022 plugins/icq/gaim_icq.c --- a/plugins/icq/gaim_icq.c Wed Jan 10 22:15:24 2001 +0000 +++ b/plugins/icq/gaim_icq.c Thu Jan 11 08:02:35 2001 +0000 @@ -331,9 +331,12 @@ icq_ChangeStatus(id->link, STATUS_FREE_CHAT); else if (!strcmp(state, "Invisible")) icq_ChangeStatus(id->link, STATUS_INVISIBLE); - else if (!strcmp(state, GAIM_AWAY_CUSTOM)) - /* we have to do this even though we don't have a custom state */ - icq_ChangeStatus(id->link, STATUS_NA); + else if (!strcmp(state, GAIM_AWAY_CUSTOM)) { + if (msg) + icq_ChangeStatus(id->link, STATUS_NA); + else + icq_ChangeStatus(id->link, STATUS_ONLINE); + } } static char **icq_list_icon(int uc) { diff -r bf041349b11e -r 65f4a0325022 plugins/yay/yay.c --- a/plugins/yay/yay.c Wed Jan 10 22:15:24 2001 +0000 +++ b/plugins/yay/yay.c Thu Jan 11 08:02:35 2001 +0000 @@ -339,6 +339,14 @@ } else if (!strcmp(state, "Invisible")) { yahoo_cmd_set_away_mode(yd->ctxt, YAHOO_STATUS_INVISIBLE, msg); yd->current_status = YAHOO_STATUS_INVISIBLE; + } else if (!strcmp(state, GAIM_AWAY_CUSTOM)) { + if (gc->is_idle) { + yahoo_cmd_set_away_mode(yd->ctxt, YAHOO_STATUS_IDLE, NULL); + yd->current_status = YAHOO_STATUS_IDLE; + } else { + yahoo_cmd_set_away_mode(yd->ctxt, YAHOO_STATUS_AVAILABLE, NULL); + yd->current_status = YAHOO_STATUS_AVAILABLE; + } } } else if (gc->is_idle) { yahoo_cmd_set_away_mode(yd->ctxt, YAHOO_STATUS_IDLE, NULL);