Mercurial > pidgin
changeset 27384:eb059c7d8b11
Oh, make sure we still set the itmsurl if we're available but don't have
an available message. Refs #9626.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 06 Jul 2009 09:35:10 +0000 |
parents | ecf2dec4ef5e |
children | ac299d029823 |
files | libpurple/protocols/oscar/oscar.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c Mon Jul 06 09:30:44 2009 +0000 +++ b/libpurple/protocols/oscar/oscar.c Mon Jul 06 09:35:10 2009 +0000 @@ -3931,6 +3931,7 @@ PurpleConnection *gc; PurpleAccount *account; PurpleStatus *status; + gboolean is_available; PurplePresence *presence; const char *username, *message, *itmsurl; char *tmp; @@ -3971,13 +3972,14 @@ /* Set our available message based on the current status */ status = purple_account_get_active_status(account); - if (purple_status_is_available(status)) + is_available = purple_status_is_available(status); + if (is_available) message = purple_status_get_attr_string(status, "message"); else message = NULL; tmp = purple_markup_strip_html(message); itmsurl = purple_status_get_attr_string(status, "itmsurl"); - aim_srv_setextrainfo(od, FALSE, 0, tmp != NULL, tmp, itmsurl); + aim_srv_setextrainfo(od, FALSE, 0, is_available, tmp, itmsurl); g_free(tmp); presence = purple_status_get_presence(status);