diff plugins/yay/yay.c @ 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 96e93119268d
line wrap: on
line diff
--- 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);