comparison finch/gntblist.c @ 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 6d8aed4adcd6
children 0cb139b20d65
comparison
equal deleted inserted replaced
18489:26a7839098e2 18490:095718d51209
137 static gboolean 137 static gboolean
138 is_group_online(PurpleGroup *group) 138 is_group_online(PurpleGroup *group)
139 { 139 {
140 PurpleBlistNode *node; 140 PurpleBlistNode *node;
141 for (node = ((PurpleBlistNode*)group)->child; node; node = node->next) { 141 for (node = ((PurpleBlistNode*)group)->child; node; node = node->next) {
142 if (PURPLE_BLIST_NODE_IS_CHAT(node)) 142 if (PURPLE_BLIST_NODE_IS_CHAT(node) &&
143 purple_account_is_connected(((PurpleChat *)node)->account))
143 return TRUE; 144 return TRUE;
144 else if (is_contact_online((PurpleContact*)node)) 145 else if (is_contact_online((PurpleContact*)node))
145 return TRUE; 146 return TRUE;
146 } 147 }
147 return FALSE; 148 return FALSE;