changeset 15135:9e1d9c9229ce

[gaim-migrate @ 17920] gg: Display status message of offline buddies. committer: Tailor Script <tailor@pidgin.im>
author Bartoz Oler <bartosz@pidgin.im>
date Thu, 07 Dec 2006 23:16:04 +0000
parents 5da7cafb285a
children 31603a03cc02
files libgaim/protocols/gg/gg.c
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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<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);
 	}