diff 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
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Thu Mar 13 10:16:59 2003 +0000
+++ b/src/protocols/yahoo/yahoo.c	Thu Mar 13 17:52:21 2003 +0000
@@ -1083,10 +1083,17 @@
 {
 	struct yahoo_data *yd = (struct yahoo_data*)b->account->gc->proto_data;
 	if (b->uc & UC_UNAVAILABLE) {
+		char *status;
+		char *ret;
 		if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM)
-			return g_strdup(yahoo_get_status_string(b->uc >> 2));
+			status = g_strdup(yahoo_get_status_string(b->uc >> 2));
 		else
-			return strip_html(g_hash_table_lookup(yd->hash, b->name));
+			status = strip_html(g_hash_table_lookup(yd->hash, b->name));
+		if(status) {
+			ret = g_strdup_printf(_("<b>Status:</b> %s"), status);
+			g_free(status);
+			return ret;
+		}
 	}
 	return NULL;
 }