# HG changeset patch # User Sean Egan # Date 1047452967 0 # Node ID 39068784aa0871d3dd5e74847b0b0d99867f797f # Parent 534eaa4ead94a45afd2b7b4defb9ac5ad4493a7e [gaim-migrate @ 5035] Let MSN use the cool short-status-message on the buddy list thingy. committer: Tailor Script diff -r 534eaa4ead94 -r 39068784aa08 src/protocols/msn/msn.c --- 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;