changeset 8265:b7ff849f48dd

[gaim-migrate @ 8988] Fix a bug where, to become uninvisible on ICQ you had to choose Available 2 times. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 15 Feb 2004 21:47:43 +0000
parents d6d65e005523
children b37211166855
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sun Feb 15 20:13:03 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Sun Feb 15 21:47:43 2004 +0000
@@ -4647,15 +4647,12 @@
 		gc->away = NULL;
 	}
 
-	if (strcmp(state, _("Invisible"))) {
-		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);
+	if (strcmp(state, _("Invisible")))
 		account->perm_deny = 4;
-	} else {
-		if ((od->sess->ssi.received_data) && (aim_ssi_getpermdeny(od->sess->ssi.local) != 0x03))
-			aim_ssi_setpermdeny(od->sess, 0x03, 0xffffffff);
+	else
 		account->perm_deny = 3;
-	}
+	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);
 
 	if (!strcmp(state, _("Online")))
 		aim_setextstatus(od->sess, AIM_ICQ_STATE_NORMAL);