# HG changeset patch # User Mark Doliner # Date 1134104706 0 # Node ID 74d5a423433cd835e8fa03dc83652ad2baa30e27 # Parent 7d5b5b88f2a704610023c29c8dfa08b7fcb8e05e [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 diff -r 7d5b5b88f2a7 -r 74d5a423433c src/protocols/oscar/oscar.c --- 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%s: %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%s: %s", _("Away Message"), tmp2); g_free(tmp2); } + else + { + g_string_append_printf(str, "\n%s: %s", _("Away Message"), _("(pending)")); + } } }