diff src/dialogs.c @ 6885:66dd420d3d23

[gaim-migrate @ 7431] Add support for removing groups in protocols. Currently, only MSN supports it, but you cannot delete group 0 (aka, "The evil ~ group of DOOM!"), so I'll add a GrossHack (TM) to not show that group if it's empty. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 18 Sep 2003 05:39:44 +0000
parents 618124fe3289
children 083d1e4a9c78
line wrap: on
line diff
--- a/src/dialogs.c	Thu Sep 18 02:56:04 2003 +0000
+++ b/src/dialogs.c	Thu Sep 18 05:39:44 2003 +0000
@@ -435,7 +435,9 @@
 void do_remove_group(GaimGroup *g)
 {
 	GaimBlistNode *cnode, *bnode;
+
 	cnode = ((GaimBlistNode*)g)->child;
+
 	while(cnode) {
 		if(GAIM_BLIST_NODE_IS_CONTACT(cnode)) {
 			bnode = cnode->child;
@@ -467,6 +469,7 @@
 			cnode = cnode->next;
 		}
 	}
+
 	gaim_blist_remove_group(g);
 	gaim_blist_save();
 }