Mercurial > pidgin.yaz
changeset 12433:74d5a423433c
[gaim-migrate @ 14740]
Show "Away Message: (pending)" in oscar tooltips when someone is
away but we haven't auto-fetched their away message yet
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 09 Dec 2005 05:05:06 +0000 |
parents | 7d5b5b88f2a7 |
children | 1811afd29b57 |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 14 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Fri Dec 09 04:59:04 2005 +0000 +++ b/src/protocols/oscar/oscar.c Fri Dec 09 05:05:06 2005 +0000 @@ -7590,11 +7590,18 @@ status = gaim_presence_get_active_status(presence); message = gaim_status_get_attr_string(status, "message"); - if (message != NULL) { - if (gaim_status_type_get_primitive(gaim_status_get_type(status)) == GAIM_STATUS_AVAILABLE) { + if (gaim_status_is_available(status)) + { + if (message != NULL) + { /* Available status messages are plain text */ g_string_append_printf(str, "\n<b>%s:</b> %s", _("Available Message"), message); - } else { + } + } + else + { + if (message != NULL) + { /* Away messages are HTML */ gchar *tmp1, *tmp2; tmp2 = gaim_markup_strip_html(message); @@ -7605,6 +7612,10 @@ g_string_append_printf(str, "\n<b>%s:</b> %s", _("Away Message"), tmp2); g_free(tmp2); } + else + { + g_string_append_printf(str, "\n<b>%s:</b> %s", _("Away Message"), _("(pending)")); + } } }