libpurple/buddylist.c

changeset 41812
c3cd920261b6
parent 41733
a9085b52de8b
child 41840
fe350460fb1c
equal deleted inserted replaced
41811:f4ac61968453 41812:c3cd920261b6
1625 /* Remove the group from all accounts that are online */ 1625 /* Remove the group from all accounts that are online */
1626 for (l = purple_connections_get_all(); l != NULL; l = l->next) 1626 for (l = purple_connections_get_all(); l != NULL; l = l->next)
1627 { 1627 {
1628 PurpleConnection *gc = (PurpleConnection *)l->data; 1628 PurpleConnection *gc = (PurpleConnection *)l->data;
1629 1629
1630 if (purple_connection_get_state(gc) == PURPLE_CONNECTION_CONNECTED) 1630 if(purple_connection_get_state(gc) == PURPLE_CONNECTION_STATE_CONNECTED) {
1631 purple_account_remove_group(purple_connection_get_account(gc), group); 1631 purple_account_remove_group(purple_connection_get_account(gc), group);
1632 }
1632 } 1633 }
1633 1634
1634 /* Delete the node */ 1635 /* Delete the node */
1635 g_object_unref(group); 1636 g_object_unref(group);
1636 } 1637 }

mercurial