comparison src/protocols/yahoo/yahoo.c @ 10126:3c3795562256

[gaim-migrate @ 11163] this fixes yahoo's emblems some, but the priorities are still fscked or something, bleeter appears offline because a higher priority version of himself is offline... committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Tue, 19 Oct 2004 05:17:14 +0000
parents bde7418a2573
children e47d1bf844c9
comparison
equal deleted inserted replaced
10125:ee50e4797352 10126:3c3795562256
2573 char *emblems[4] = {NULL,NULL,NULL,NULL}; 2573 char *emblems[4] = {NULL,NULL,NULL,NULL};
2574 GaimAccount *account; 2574 GaimAccount *account;
2575 GaimConnection *gc; 2575 GaimConnection *gc;
2576 struct yahoo_data *yd; 2576 struct yahoo_data *yd;
2577 YahooFriend *f; 2577 YahooFriend *f;
2578 GaimPresence *presence;
2579 GaimStatus *status;
2580 const char *status_id;
2578 2581
2579 if (!b || !(account = b->account) || !(gc = gaim_account_get_connection(account)) || 2582 if (!b || !(account = b->account) || !(gc = gaim_account_get_connection(account)) ||
2580 !(yd = gc->proto_data)) 2583 !(yd = gc->proto_data))
2581 return; 2584 return;
2582 2585
2584 if (!f) { 2587 if (!f) {
2585 *se = "notauthorized"; 2588 *se = "notauthorized";
2586 return; 2589 return;
2587 } 2590 }
2588 2591
2589 if (b->present == GAIM_BUDDY_OFFLINE) { 2592 presence = gaim_buddy_get_presence(b);
2593 status = gaim_presence_get_active_status(presence);
2594 status_id = gaim_status_get_id(status);
2595
2596 if (gaim_presence_is_online(presence) == FALSE) {
2590 *se = "offline"; 2597 *se = "offline";
2591 return; 2598 return;
2592 } else { 2599 } else {
2593 if (f->away) 2600 if (f->away)
2594 emblems[i++] = "away"; 2601 emblems[i++] = "away";