comparison 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
comparison
equal deleted inserted replaced
1401:bf041349b11e 1402:65f4a0325022
337 yahoo_cmd_set_away_mode(yd->ctxt, YAHOO_STATUS_STEPPEDOUT, msg); 337 yahoo_cmd_set_away_mode(yd->ctxt, YAHOO_STATUS_STEPPEDOUT, msg);
338 yd->current_status = YAHOO_STATUS_STEPPEDOUT; 338 yd->current_status = YAHOO_STATUS_STEPPEDOUT;
339 } else if (!strcmp(state, "Invisible")) { 339 } else if (!strcmp(state, "Invisible")) {
340 yahoo_cmd_set_away_mode(yd->ctxt, YAHOO_STATUS_INVISIBLE, msg); 340 yahoo_cmd_set_away_mode(yd->ctxt, YAHOO_STATUS_INVISIBLE, msg);
341 yd->current_status = YAHOO_STATUS_INVISIBLE; 341 yd->current_status = YAHOO_STATUS_INVISIBLE;
342 } else if (!strcmp(state, GAIM_AWAY_CUSTOM)) {
343 if (gc->is_idle) {
344 yahoo_cmd_set_away_mode(yd->ctxt, YAHOO_STATUS_IDLE, NULL);
345 yd->current_status = YAHOO_STATUS_IDLE;
346 } else {
347 yahoo_cmd_set_away_mode(yd->ctxt, YAHOO_STATUS_AVAILABLE, NULL);
348 yd->current_status = YAHOO_STATUS_AVAILABLE;
349 }
342 } 350 }
343 } else if (gc->is_idle) { 351 } else if (gc->is_idle) {
344 yahoo_cmd_set_away_mode(yd->ctxt, YAHOO_STATUS_IDLE, NULL); 352 yahoo_cmd_set_away_mode(yd->ctxt, YAHOO_STATUS_IDLE, NULL);
345 yd->current_status = YAHOO_STATUS_IDLE; 353 yd->current_status = YAHOO_STATUS_IDLE;
346 } else { 354 } else {