comparison src/protocols/msn/userlist.c @ 13692:ea77ce998dc7

[gaim-migrate @ 16095] Part of SF Patch #1437836 from Sadrul "1. gaim_privacy_[permit|deny]_remove checks whether the buddy in the list. So it is not necessary to do that before calling these functions. (first block in the patch)" Additionally, it does a gaim_normalize()d UTF-8 compare, which should be better than strcmp(). committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 25 Apr 2006 17:27:17 +0000
parents 4b8dcf7c38a2
children 6c3c8d0d389f
comparison
equal deleted inserted replaced
13691:87b027bb1f15 13692:ea77ce998dc7
397 } 397 }
398 398
399 if (list_op & MSN_LIST_AL_OP) 399 if (list_op & MSN_LIST_AL_OP)
400 { 400 {
401 /* These are users who are allowed to see our status. */ 401 /* These are users who are allowed to see our status. */
402 402 gaim_privacy_deny_remove(account, passport, TRUE);
403 if (g_slist_find_custom(account->deny, passport,
404 (GCompareFunc)strcmp))
405 {
406 gaim_privacy_deny_remove(gc->account, passport, TRUE);
407 }
408
409 gaim_privacy_permit_add(account, passport, TRUE); 403 gaim_privacy_permit_add(account, passport, TRUE);
410 } 404 }
411 405
412 if (list_op & MSN_LIST_BL_OP) 406 if (list_op & MSN_LIST_BL_OP)
413 { 407 {
414 /* These are users who are not allowed to see our status. */ 408 /* These are users who are not allowed to see our status. */
415 409 gaim_privacy_permit_remove(account, passport, TRUE);
416 if (g_slist_find_custom(account->permit, passport,
417 (GCompareFunc)strcmp))
418 {
419 gaim_privacy_permit_remove(gc->account, passport, TRUE);
420 }
421
422 gaim_privacy_deny_add(account, passport, TRUE); 410 gaim_privacy_deny_add(account, passport, TRUE);
423 } 411 }
424 412
425 if (list_op & MSN_LIST_RL_OP) 413 if (list_op & MSN_LIST_RL_OP)
426 { 414 {