changeset 1402:65f4a0325022

[gaim-migrate @ 1412] whoops. this should work better. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 11 Jan 2001 08:02:35 +0000
parents bf041349b11e
children c0aa7fdc0a93
files plugins/icq/gaim_icq.c plugins/yay/yay.c
diffstat 2 files changed, 14 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);