changeset 2772:f9227268db25

[gaim-migrate @ 2785] isback? committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 19 Nov 2001 23:32:04 +0000
parents 450f4f9d2f23
children a0fd8f91e294
files src/protocols/yahoo/yahoo.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)