changeset 18490:095718d51209

Chats aren't shown if their account is offline, so a group of offline chats shouldn't be either
author Richard Nelson <wabz@pidgin.im>
date Wed, 11 Jul 2007 23:17:22 +0000
parents 26a7839098e2
children 8f172a8b8cce
files finch/gntblist.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntblist.c	Wed Jul 11 20:35:48 2007 +0000
+++ b/finch/gntblist.c	Wed Jul 11 23:17:22 2007 +0000
@@ -139,7 +139,8 @@
 {
 	PurpleBlistNode *node;
 	for (node = ((PurpleBlistNode*)group)->child; node; node = node->next) {
-		if (PURPLE_BLIST_NODE_IS_CHAT(node))
+		if (PURPLE_BLIST_NODE_IS_CHAT(node) &&
+				purple_account_is_connected(((PurpleChat *)node)->account))
 			return TRUE;
 		else if (is_contact_online((PurpleContact*)node))
 			return TRUE;