Mercurial > pidgin
diff src/protocols/yahoo/yahoo.c @ 5002:f78b24df83d5
[gaim-migrate @ 5337]
Greying idle Yahoo buddies and added the Yahoo "game" emblem.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Fri, 04 Apr 2003 23:15:19 +0000 |
parents | d9b6b5ae34e4 |
children | b37d7d09ec83 |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c Fri Apr 04 22:20:37 2003 +0000 +++ b/src/protocols/yahoo/yahoo.c Fri Apr 04 23:15:19 2003 +0000 @@ -425,6 +425,8 @@ } if (state == YAHOO_STATUS_AVAILABLE) serv_got_update(gc, name, 1, 0, 0, 0, gamestate); + else if (state == YAHOO_STATUS_IDLE) + serv_got_update(gc, name, 1, 0, 0, -1, (state << 2) | UC_UNAVAILABLE | gamestate); else serv_got_update(gc, name, 1, 0, 0, 0, (state << 2) | UC_UNAVAILABLE | gamestate); break; @@ -606,7 +608,7 @@ who = pair->value; else if (pair->key == 14) msg = pair->value; - else if (pair->key == 7) + else if (pair->key == 7) name = pair->value; else if (pair->key == 10) state = strtol(pair->value, NULL, 10); @@ -621,7 +623,7 @@ if (state == YAHOO_STATUS_AVAILABLE) serv_got_update(gc, name, 1, 0, 0, 0, 0); else if (state == YAHOO_STATUS_IDLE) - serv_got_update(gc, name, 1, 0, 0, time(NULL) - 600, (state << 2)); + serv_got_update(gc, name, 1, 0, 0, -1, (state << 2)); else serv_got_update(gc, name, 1, 0, 0, 0, (state << 2) | UC_UNAVAILABLE); if (state == YAHOO_STATUS_CUSTOM) { @@ -1024,8 +1026,6 @@ *se = "offline"; return; } else { - if ((b->uc >> 2) == YAHOO_STATUS_IDLE) - emblems[i++] = "idle"; if (b->uc & UC_UNAVAILABLE) emblems[i++] = "away"; if (b->uc & YAHOO_STATUS_GAME)