src/protocols/oscar/oscar.c

changeset 4754
216cd548ad68
parent 4744
c3a5a15c01f7
child 4759
5a8c326b49b3
--- a/src/protocols/oscar/oscar.c	Thu Mar 13 21:36:02 2003 +0000
+++ b/src/protocols/oscar/oscar.c	Thu Mar 13 22:02:12 2003 +0000
@@ -4342,7 +4342,7 @@
 	debug_printf("ssi: syncing local list and server list\n");
 
 	/* Clean the buddy list */
-	/* aim_ssi_cleanlist(sess, fr->conn); */
+	aim_ssi_cleanlist(sess, fr->conn);
 
 	/* Add from server list to local list */
 	tmp = 0;
@@ -4356,6 +4356,7 @@
 					char *alias_utf8 = gaim_try_conv_to_utf8(alias);
 					struct buddy *buddy = gaim_find_buddy(gc->account, curitem->name);
 					/* Should gname be freed here? -- elb */
+					/* Not with the current code, but that might be cleaner -- med */
 					free(alias);
 					if (buddy) {
 						/* Get server stored alias */
@@ -4367,8 +4368,10 @@
 						struct group *g;
 						buddy = gaim_buddy_new(gc->account, curitem->name, alias_utf8);
 						
-						if (!(g = gaim_find_group(gname_utf8 ? gname_utf8 : _("Orphans"))))
+						if (!(g = gaim_find_group(gname_utf8 ? gname_utf8 : _("Orphans")))) {
 							g = gaim_group_new(gname_utf8 ? gname_utf8 : _("Orphans"));
+							gaim_blist_add_group(g, NULL);
+						}
 						
 						debug_printf("ssi: adding buddy %s to group %s to local list\n", curitem->name, gname);
 						gaim_blist_add_buddy(buddy, g, NULL);

mercurial