comparison src/protocols/yahoo/yahoo.c @ 4745:01cae9259e2f

[gaim-migrate @ 5060] fixes a bug where if all your accounts got logged off, thus making the buddy list disappear, you could never get it back. That makes for a bad time when your internet connection goes out (like mine did last night) also makes some of the prpl tooltips spiffier, and re-does some of the handling of away messages in jabber, thus making it cooler. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 13 Mar 2003 17:52:21 +0000
parents c15e0699acae
children 92ae181271e9
comparison
equal deleted inserted replaced
4744:a0746ffce599 4745:01cae9259e2f
1081 1081
1082 static char *yahoo_tooltip_text(struct buddy *b) 1082 static char *yahoo_tooltip_text(struct buddy *b)
1083 { 1083 {
1084 struct yahoo_data *yd = (struct yahoo_data*)b->account->gc->proto_data; 1084 struct yahoo_data *yd = (struct yahoo_data*)b->account->gc->proto_data;
1085 if (b->uc & UC_UNAVAILABLE) { 1085 if (b->uc & UC_UNAVAILABLE) {
1086 char *status;
1087 char *ret;
1086 if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM) 1088 if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM)
1087 return g_strdup(yahoo_get_status_string(b->uc >> 2)); 1089 status = g_strdup(yahoo_get_status_string(b->uc >> 2));
1088 else 1090 else
1089 return strip_html(g_hash_table_lookup(yd->hash, b->name)); 1091 status = strip_html(g_hash_table_lookup(yd->hash, b->name));
1092 if(status) {
1093 ret = g_strdup_printf(_("<b>Status:</b> %s"), status);
1094 g_free(status);
1095 return ret;
1096 }
1090 } 1097 }
1091 return NULL; 1098 return NULL;
1092 } 1099 }
1093 1100
1094 static GList *yahoo_buddy_menu(struct gaim_connection *gc, char *who) 1101 static GList *yahoo_buddy_menu(struct gaim_connection *gc, char *who)