Mercurial > pidgin.yaz
changeset 11766:fa78d6b8ec7d
[gaim-migrate @ 14057]
Use the #defines to hopefully make things more clear
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 23 Oct 2005 21:57:49 +0000 |
parents | d8be45dfa316 |
children | 8c3a139e8eb3 |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Sun Oct 23 21:43:52 2005 +0000 +++ b/src/protocols/oscar/oscar.c Sun Oct 23 21:57:49 2005 +0000 @@ -6617,10 +6617,10 @@ if (!od) return; - if (gaim_status_type_get_primitive(gaim_status_get_type(status)) != GAIM_STATUS_HIDDEN) - account->perm_deny = 4; + if (gaim_status_type_get_primitive(gaim_status_get_type(status)) == GAIM_STATUS_HIDDEN) + account->perm_deny = GAIM_PRIVACY_ALLOW_USERS; else - account->perm_deny = 3; + account->perm_deny = GAIM_PRIVACY_DENY_USERS; if ((od->sess->ssi.received_data) && (aim_ssi_getpermdeny(od->sess->ssi.local) != account->perm_deny)) aim_ssi_setpermdeny(od->sess, account->perm_deny, 0xffffffff); @@ -7029,8 +7029,8 @@ gaim_debug_info("oscar", "ssi: changing permdeny from %d to %hhu\n", account->perm_deny, permdeny); account->perm_deny = permdeny; - if (od->icq && account->perm_deny == 0x03) { - gaim_presence_switch_status(account->presence, OSCAR_STATUS_ID_INVISIBLE); + if (od->icq && account->perm_deny == GAIM_PRIVACY_ALLOW_USERS) { + gaim_presence_set_status_active(account->presence, OSCAR_STATUS_ID_INVISIBLE, TRUE); } } }