comparison src/protocols/oscar/ssi.c @ 4347:9fcc9eb94cae

[gaim-migrate @ 4612] "I love you man!" "You're not getting my Bud Light." committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 19 Jan 2003 21:29:52 +0000
parents 2903c656875a
children 2b8abf7f9cc1
comparison
equal deleted inserted replaced
4346:2903c656875a 4347:9fcc9eb94cae
307 } 307 }
308 } 308 }
309 309
310 } else if (sn) { /* For finding permits, denies, and ignores */ 310 } else if (sn) { /* For finding permits, denies, and ignores */
311 for (cur=list; cur; cur=cur->next) { 311 for (cur=list; cur; cur=cur->next) {
312 if ((cur->type == type) && (cur->gid == 0x0000) && (cur->name) && !(aim_sncmp(cur->name, sn))) { 312 if ((cur->type == type) && (cur->name) && !(aim_sncmp(cur->name, sn))) {
313 return cur; 313 return cur;
314 } 314 }
315 } 315 }
316 316
317 /* For stuff without names--permit deny setting, visibility mask, etc. */ 317 /* For stuff without names--permit deny setting, visibility mask, etc. */
630 return 0; 630 return 0;
631 } 631 }
632 632
633 /** 633 /**
634 * This "cleans" the ssi list. It does the following: 634 * This "cleans" the ssi list. It does the following:
635 * 1) Makes sure that all buddies are in a group. 635 * 1) Makes sure all buddies, permits, and denies have names.
636 * 2) Makes sure there are no empty groups 636 * 2) Makes sure that all buddies are in a group that exist.
637 * 3) Deletes any empty groups
637 * 638 *
638 * @param sess The oscar session. 639 * @param sess The oscar session.
639 * @param conn The bos connection for this session. 640 * @param conn The bos connection for this session.
640 * @return Return 0 if no errors, otherwise return the error number. 641 * @return Return 0 if no errors, otherwise return the error number.
641 */ 642 */