Mercurial > pidgin.yaz
diff src/protocols/yahoo/yahoo.c @ 4730:9d3b7b106def
[gaim-migrate @ 5043]
Fixed a pair of bugs.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 12 Mar 2003 23:19:39 +0000 |
parents | 751c37a940dd |
children | 6f0ecc21db46 |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c Wed Mar 12 21:43:39 2003 +0000 +++ b/src/protocols/yahoo/yahoo.c Wed Mar 12 23:19:39 2003 +0000 @@ -1043,6 +1043,8 @@ return _("Stepped Out"); case YAHOO_STATUS_INVISIBLE: return _("Invisible"); + case YAHOO_STATUS_IDLE: + return _("Idle"); default: return _("Online"); } @@ -1068,8 +1070,8 @@ static const char *yahoo_status_text(struct buddy *b) { struct yahoo_data *yd = (struct yahoo_data*)b->account->gc->proto_data; - if (b->uc & UC_UNAVAILABLE && b->uc >> 2 != YAHOO_STATUS_IDLE) { - if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM) + if (b->uc & UC_UNAVAILABLE) { + if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM) return yahoo_get_status_string(b->uc >> 2); else return g_hash_table_lookup(yd->hash, b->name); @@ -1080,15 +1082,22 @@ static char *yahoo_tooltip_text(struct buddy *b) { struct yahoo_data *yd = (struct yahoo_data*)b->account->gc->proto_data; - if (b->uc & UC_UNAVAILABLE && b->uc >> 2 != YAHOO_STATUS_IDLE) { - if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM) + if (b->uc & UC_UNAVAILABLE) { + if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM) return g_strdup(yahoo_get_status_string(b->uc >> 2)); else return g_strdup(g_hash_table_lookup(yd->hash, b->name)); +<<<<<<< yahoo.c + } + return NULL; +} + +======= } return NULL; } +>>>>>>> 1.76 static GList *yahoo_buddy_menu(struct gaim_connection *gc, char *who) { GList *m = NULL;