Mercurial > pidgin
diff src/protocols/oscar/ssi.c @ 3239:373346660788
[gaim-migrate @ 3256]
Fix for bug i.d. [ 554410 ] Bug in SSI Deleting Last Buddy in Group.
(Thanks, KingAnt)
committer: Tailor Script <tailor@pidgin.im>
author | Jim Seymour <jseymour> |
---|---|
date | Fri, 10 May 2002 22:32:41 +0000 |
parents | 5e90ecb578c5 |
children | f56d084d4046 |
line wrap: on
line diff
--- a/src/protocols/oscar/ssi.c Fri May 10 14:46:36 2002 +0000 +++ b/src/protocols/oscar/ssi.c Fri May 10 22:32:41 2002 +0000 @@ -590,9 +590,9 @@ return -EINVAL; /* Look up the parent group */ - if (!(parentgroup = aim_ssi_itemlist_finditem(sess->ssi.items, NULL, NULL, AIM_SSI_TYPE_GROUP))) { + if (!(parentgroup = aim_ssi_itemlist_find(sess->ssi.items, 0, 0))) { aim_ssi_addmastergroup(sess, conn); - if (!(parentgroup = aim_ssi_itemlist_finditem(sess->ssi.items, NULL, NULL, AIM_SSI_TYPE_GROUP))) + if (!(parentgroup = aim_ssi_itemlist_find(sess->ssi.items, 0, 0))) return -ENOMEM; } @@ -840,7 +840,7 @@ return -EINVAL; /* Make delitem a pointer to the aim_ssi_item to be deleted */ - if (!(delitem = aim_ssi_itemlist_finditem(sess->ssi.items, NULL, NULL, AIM_SSI_TYPE_GROUP))) + if (!(delitem = aim_ssi_itemlist_find(sess->ssi.items, 0, 0))) return -EINVAL; /* Remove delitem from the item list */ @@ -885,7 +885,7 @@ return -EINVAL; /* Look up the parent group */ - if (!(parentgroup = aim_ssi_itemlist_finditem(sess->ssi.items, NULL, NULL, AIM_SSI_TYPE_GROUP))) + if (!(parentgroup = aim_ssi_itemlist_find(sess->ssi.items, 0, 0))) return -EINVAL; /* Allocate an array of pointers to each of the items to be deleted */