changeset 4723:39068784aa08

[gaim-migrate @ 5035] Let MSN use the cool short-status-message on the buddy list thingy. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 12 Mar 2003 07:09:27 +0000
parents 534eaa4ead94
children b9e7ccf21f9c
files src/protocols/msn/msn.c
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Wed Mar 12 06:37:40 2003 +0000
+++ b/src/protocols/msn/msn.c	Wed Mar 12 07:09:27 2003 +0000
@@ -1637,6 +1637,11 @@
 	mft->xfer = transfer_out_add(gc, mft->sn);
 }
 #endif
+static const char *msn_status_text(struct buddy *b) {
+	if (b->uc & UC_UNAVAILABLE)
+		return msn_get_away_text(b->uc >> 1);
+	return NULL;
+}
 
 static GList *msn_buddy_menu(struct gaim_connection *gc, char *who)
 {
@@ -1656,12 +1661,7 @@
 		return m;
 #endif
 
-	pbm = g_new0(struct proto_buddy_menu, 1);
-	g_snprintf(buf, sizeof(buf), _("Status: %s"), msn_get_away_text(b->uc >> 1));
-	pbm->label = buf;
-	pbm->callback = NULL;
-	pbm->gc = gc;
-	m = g_list_append(m, pbm);
+
 
 	return m;
 }
@@ -2006,6 +2006,7 @@
 	ret->send_im = msn_send_im;
 	ret->send_typing = msn_send_typing;
 	ret->away_states = msn_away_states;
+	ret->status_text = msn_status_text;
 	ret->set_away = msn_set_away;
 	ret->set_idle = msn_set_idle;
 	ret->add_buddy = msn_add_buddy;