Mercurial > pidgin.yaz
changeset 24931:3e39e4652c36
xmpp does this!
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sat, 10 Jan 2009 07:12:56 +0000 |
parents | a7b248333977 |
children | 1e56413147dd |
files | libpurple/protocols/msn/msn.c |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c Fri Jan 09 03:57:07 2009 +0000 +++ b/libpurple/protocols/msn/msn.c Sat Jan 10 07:12:56 2009 +0000 @@ -647,6 +647,13 @@ presence = purple_buddy_get_presence(buddy); status = purple_presence_get_active_status(presence); + /* Official client says media takes precedence over message */ + /* I say message take precedence over media! Plus prpl-jabber agrees + too */ + msg = purple_status_get_attr_string(status, "message"); + if (msg && *msg) + return g_markup_escape_text(msg, -1); + if (purple_presence_is_status_primitive_active(presence, PURPLE_STATUS_TUNE)) { const char *title, *game, *office; char *media, *esc; @@ -677,11 +684,6 @@ return esc; } - /* Official client says media takes precedence over message */ - msg = purple_status_get_attr_string(status, "message"); - if (msg && *msg) - return g_markup_escape_text(msg, -1); - return NULL; }