comparison src/protocols/oscar/oscar.c @ 3013:47d0f8979fb1

[gaim-migrate @ 3026] ICQ buddies coming back from away will no longer appear to be unavailable. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 06 Mar 2002 05:26:58 +0000
parents f188ae5e575b
children 8863555aacc6
comparison
equal deleted inserted replaced
3012:08327a2f25aa 3013:47d0f8979fb1
1154 if (info->flags & AIM_FLAG_FREE) 1154 if (info->flags & AIM_FLAG_FREE)
1155 type |= UC_NORMAL; 1155 type |= UC_NORMAL;
1156 if (info->flags & AIM_FLAG_AWAY) 1156 if (info->flags & AIM_FLAG_AWAY)
1157 type |= UC_UNAVAILABLE; 1157 type |= UC_UNAVAILABLE;
1158 } 1158 }
1159
1160 if (info->present & AIM_USERINFO_PRESENT_ICQEXTSTATUS) { 1159 if (info->present & AIM_USERINFO_PRESENT_ICQEXTSTATUS) {
1161 type = (info->icqinfo.status << 6); 1160 type = (info->icqinfo.status << 6);
1162 if (!(info->icqinfo.status & AIM_ICQ_STATE_CHAT)) 1161 if (!(info->icqinfo.status & AIM_ICQ_STATE_CHAT) &&
1162 (info->icqinfo.status != AIM_ICQ_STATE_NORMAL)) {
1163 type |= UC_UNAVAILABLE; 1163 type |= UC_UNAVAILABLE;
1164 }
1164 } 1165 }
1165 1166
1166 if (caps & AIM_CAPS_ICQ) 1167 if (caps & AIM_CAPS_ICQ)
1167 caps ^= AIM_CAPS_ICQ; 1168 caps ^= AIM_CAPS_ICQ;
1168 1169
2616 } else if (!strcmp(state, GAIM_AWAY_CUSTOM)) { 2617 } else if (!strcmp(state, GAIM_AWAY_CUSTOM)) {
2617 if (message) { 2618 if (message) {
2618 aim_setextstatus(od->sess, od->conn, AIM_ICQ_STATE_OUT); 2619 aim_setextstatus(od->sess, od->conn, AIM_ICQ_STATE_OUT);
2619 gc->away = ""; 2620 gc->away = "";
2620 } else { 2621 } else {
2622
2621 aim_setextstatus(od->sess, od->conn, AIM_ICQ_STATE_NORMAL); 2623 aim_setextstatus(od->sess, od->conn, AIM_ICQ_STATE_NORMAL);
2622 } 2624 }
2623 } 2625 }
2624 2626
2625 return; 2627 return;