From: <bo...@us...> - 2006-12-08 07:41:03
|
Revision: 17920 http://svn.sourceforge.net/gaim/?rev=17920&view=rev Author: boler Date: 2006-12-07 15:16:04 -0800 (Thu, 07 Dec 2006) Log Message: ----------- gg: Display status message of offline buddies. Modified Paths: -------------- trunk/libgaim/protocols/gg/gg.c Modified: trunk/libgaim/protocols/gg/gg.c =================================================================== --- trunk/libgaim/protocols/gg/gg.c 2006-12-07 18:54:17 UTC (rev 17919) +++ trunk/libgaim/protocols/gg/gg.c 2006-12-07 23:16:04 UTC (rev 17920) @@ -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<b>%s:</b> %s: %s", - _("Status"), name, text); + if (GAIM_BUDDY_IS_ONLINE(b)) { + g_string_append_printf(str, "\n<b>%s:</b> %s: %s", + _("Status"), name, text); + } else { + g_string_append_printf(str, "\n<b>%s:</b>: %s", + _("Message"), text); + } g_free(text); - } else { + } else if (GAIM_BUDDY_IS_ONLINE(b)) { g_string_append_printf(str, "\n<b>%s:</b> %s", _("Status"), name); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |