# HG changeset patch # User Eric Warmenhoven # Date 1006212724 0 # Node ID f9227268db2512f5468075e8f54cd1d8d1b346ea # Parent 450f4f9d2f2323c328b5fd7f7b0334200fffdd45 [gaim-migrate @ 2785] isback? committer: Tailor Script diff -r 450f4f9d2f23 -r f9227268db25 src/protocols/yahoo/yahoo.c --- a/src/protocols/yahoo/yahoo.c Mon Nov 19 22:25:40 2001 +0000 +++ b/src/protocols/yahoo/yahoo.c Mon Nov 19 23:32:04 2001 +0000 @@ -967,6 +967,7 @@ { struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; struct yahoo_packet *pkt; + int service; char s[4]; gc->away = NULL; @@ -1013,7 +1014,11 @@ yd->current_status = YAHOO_STATUS_AVAILABLE; } - pkt = yahoo_packet_new(YAHOO_SERVICE_ISAWAY, yd->current_status, 0); + if (yd->current_status == YAHOO_STATUS_AVAILABLE) + service = YAHOO_SERVICE_ISBACK; + else + service = YAHOO_SERVICE_ISAWAY; + pkt = yahoo_packet_new(service, yd->current_status, 0); g_snprintf(s, sizeof(s), "%d", yd->current_status); yahoo_packet_hash(pkt, 10, s); if (yd->current_status == YAHOO_STATUS_CUSTOM)