libgaim/protocols/gg/gg.c

changeset 15196
1663f0333c05
parent 15185
74b689a74430
child 15205
f642029b2f97
--- 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);
 	}

mercurial