Thu, 11 Jan 2001 08:02:35 +0000
[gaim-migrate @ 1412]
whoops. this should work better.
| plugins/icq/gaim_icq.c | file | annotate | diff | comparison | revisions | |
| plugins/yay/yay.c | file | annotate | diff | comparison | revisions |
--- 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) {
--- 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);