# HG changeset patch # User Bartoz Oler # Date 1165533364 0 # Node ID 9e1d9c9229ce6799a3edc548fedd864efa94d61e # Parent 5da7cafb285a19294d217d680c4e30f3b05fe0ac [gaim-migrate @ 17920] gg: Display status message of offline buddies. committer: Tailor Script diff -r 5da7cafb285a -r 9e1d9c9229ce libgaim/protocols/gg/gg.c --- a/libgaim/protocols/gg/gg.c Thu Dec 07 18:54:17 2006 +0000 +++ b/libgaim/protocols/gg/gg.c Thu Dec 07 23:16:04 2006 +0000 @@ -1567,20 +1567,21 @@ g_return_if_fail(b != NULL); - if (!GAIM_BUDDY_IS_ONLINE(b)) { - return; - } - status = gaim_presence_get_active_status(gaim_buddy_get_presence(b)); msg = gaim_status_get_attr_string(status, "message"); name = gaim_status_get_name(status); if (msg != NULL) { text = g_markup_escape_text(msg, -1); - g_string_append_printf(str, "\n%s: %s: %s", - _("Status"), name, text); + if (GAIM_BUDDY_IS_ONLINE(b)) { + g_string_append_printf(str, "\n%s: %s: %s", + _("Status"), name, text); + } else { + g_string_append_printf(str, "\n%s:: %s", + _("Message"), text); + } g_free(text); - } else { + } else if (GAIM_BUDDY_IS_ONLINE(b)) { g_string_append_printf(str, "\n%s: %s", _("Status"), name); }