changeset 14943:5447eef2461a

[gaim-migrate @ 17715] gg: Don't display additional status line if buddy is offline. committer: Tailor Script <tailor@pidgin.im>
author Bartoz Oler <bartosz@pidgin.im>
date Thu, 09 Nov 2006 22:28:56 +0000
parents 77ca54a3af31
children bdbaf7ed3efd
files libgaim/protocols/gg/gg.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/gg/gg.c	Thu Nov 09 20:21:13 2006 +0000
+++ b/libgaim/protocols/gg/gg.c	Thu Nov 09 22:28:56 2006 +0000
@@ -1565,6 +1565,12 @@
 	char *text;
 	const char *msg, *name;
 
+	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);