# HG changeset patch # User Mark Doliner # Date 1130104669 0 # Node ID fa78d6b8ec7d551baf132855a90d685ef0e58a53 # Parent d8be45dfa316a7c4a5ed8256fb449c3a865576be [gaim-migrate @ 14057] Use the #defines to hopefully make things more clear committer: Tailor Script diff -r d8be45dfa316 -r fa78d6b8ec7d src/protocols/oscar/oscar.c --- 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); } } }