Mercurial > pidgin.yaz
diff libpurple/protocols/msn/msn.c @ 27592:4cddfd2d06be
Use purple_util_format_song_info in MSN/XMPP for the buddy list status text.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 12 Jul 2009 21:09:05 +0000 |
parents | d375ef85519f |
children | a12574d982a1 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c Sun Jul 12 18:48:59 2009 +0000 +++ b/libpurple/protocols/msn/msn.c Sun Jul 12 21:09:05 2009 +0000 @@ -672,12 +672,7 @@ if (title && *title) { const char *artist = purple_status_get_attr_string(status, PURPLE_TUNE_ARTIST); const char *album = purple_status_get_attr_string(status, PURPLE_TUNE_ALBUM); - media = g_strdup_printf("%s%s%s%s%s%s", title, - (artist && *artist) ? " - " : "", - (artist && *artist) ? artist : "", - (album && *album) ? " (" : "", - (album && *album) ? album : "", - (album && *album) ? ")" : ""); + media = purple_util_format_song_info(title, artist, album, NULL); } else if (game && *game) media = g_strdup_printf("Playing %s", game);