changeset 11495:d5e4a3af7934

[gaim-migrate @ 13739] Fix up ICQ status stuff a bit. Invisible was being treated incorrectly, it looks like a strcmp was misread as !strcmp in the conversion from the oldstatus way of doing things which inverted the logic a little. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 10 Sep 2005 20:43:25 +0000
parents 3314953511de
children 3f038da50a18
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sat Sep 10 20:41:20 2005 +0000
+++ b/src/protocols/oscar/oscar.c	Sat Sep 10 20:43:25 2005 +0000
@@ -6608,7 +6608,7 @@
 	if (!od)
 		return;
 
-	if (gaim_status_type_get_primitive(gaim_status_get_type(status)) == GAIM_STATUS_HIDDEN)
+	if (gaim_status_type_get_primitive(gaim_status_get_type(status)) != GAIM_STATUS_HIDDEN)
 		account->perm_deny = 4;
 	else
 		account->perm_deny = 3;
@@ -6616,7 +6616,7 @@
 	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(status_id, OSCAR_STATUS_ID_ONLINE))
+	if (!strcmp(status_id, OSCAR_STATUS_ID_ONLINE) || !strcmp(status_id, OSCAR_STATUS_ID_AVAILABLE))
 		aim_setextstatus(od->sess, AIM_ICQ_STATE_NORMAL);
 
 	else if (!strcmp(status_id, OSCAR_STATUS_ID_AWAY))