Mercurial > pidgin
comparison src/protocols/oscar/oscar.c @ 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 | 8e749b7c8ccc |
children | 25699eed3c37 |
comparison
equal
deleted
inserted
replaced
11494:3314953511de | 11495:d5e4a3af7934 |
---|---|
6606 if (gc) | 6606 if (gc) |
6607 od = (OscarData *)gc->proto_data; | 6607 od = (OscarData *)gc->proto_data; |
6608 if (!od) | 6608 if (!od) |
6609 return; | 6609 return; |
6610 | 6610 |
6611 if (gaim_status_type_get_primitive(gaim_status_get_type(status)) == GAIM_STATUS_HIDDEN) | 6611 if (gaim_status_type_get_primitive(gaim_status_get_type(status)) != GAIM_STATUS_HIDDEN) |
6612 account->perm_deny = 4; | 6612 account->perm_deny = 4; |
6613 else | 6613 else |
6614 account->perm_deny = 3; | 6614 account->perm_deny = 3; |
6615 | 6615 |
6616 if ((od->sess->ssi.received_data) && (aim_ssi_getpermdeny(od->sess->ssi.local) != account->perm_deny)) | 6616 if ((od->sess->ssi.received_data) && (aim_ssi_getpermdeny(od->sess->ssi.local) != account->perm_deny)) |
6617 aim_ssi_setpermdeny(od->sess, account->perm_deny, 0xffffffff); | 6617 aim_ssi_setpermdeny(od->sess, account->perm_deny, 0xffffffff); |
6618 | 6618 |
6619 if (!strcmp(status_id, OSCAR_STATUS_ID_ONLINE)) | 6619 if (!strcmp(status_id, OSCAR_STATUS_ID_ONLINE) || !strcmp(status_id, OSCAR_STATUS_ID_AVAILABLE)) |
6620 aim_setextstatus(od->sess, AIM_ICQ_STATE_NORMAL); | 6620 aim_setextstatus(od->sess, AIM_ICQ_STATE_NORMAL); |
6621 | 6621 |
6622 else if (!strcmp(status_id, OSCAR_STATUS_ID_AWAY)) | 6622 else if (!strcmp(status_id, OSCAR_STATUS_ID_AWAY)) |
6623 aim_setextstatus(od->sess, AIM_ICQ_STATE_AWAY); | 6623 aim_setextstatus(od->sess, AIM_ICQ_STATE_AWAY); |
6624 | 6624 |