Changeset f0cb961 for protocols/oscar
- Timestamp:
- 2007-04-19T06:03:43Z (18 years ago)
- Branches:
- master
- Children:
- d323394c
- Parents:
- 33dc261
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
r33dc261 rf0cb961 1119 1119 aim_ssi_auth_reply(od->sess, od->conn, uin, 1, ""); 1120 1120 // aim_send_im_ch4(od->sess, uin, AIM_ICQMSG_AUTHGRANTED, &message); 1121 if( find_buddy(data->ic, uin) == NULL)1121 if(imcb_find_buddy(data->ic, uin) == NULL) 1122 1122 imcb_ask_add(data->ic, uin, NULL); 1123 1123 … … 1875 1875 struct oscar_data *odata = (struct oscar_data *)g->proto_data; 1876 1876 if (odata->icq) { 1877 struct buddy *budlight = find_buddy(g, who);1877 struct buddy *budlight = imcb_find_buddy(g, who); 1878 1878 if (budlight) 1879 1879 if ((budlight->uc & 0xff80) >> 7) … … 2013 2013 switch (curitem->type) { 2014 2014 case 0x0000: /* Buddy */ 2015 if ((curitem->name) && (! find_buddy(ic, curitem->name))) {2015 if ((curitem->name) && (!imcb_find_buddy(ic, curitem->name))) { 2016 2016 char *realname = NULL; 2017 2017 … … 2019 2019 realname = aim_gettlv_str(curitem->data, 0x0131, 1); 2020 2020 2021 add_buddy(ic, NULL, curitem->name, realname);2021 imcb_add_buddy(ic, curitem->name, NULL); 2022 2022 2023 if (realname) 2024 g_free(realname); 2023 if (realname) { 2024 imcb_rename_buddy(ic, curitem->name, realname); 2025 g_free(realname); 2026 } 2025 2027 } 2026 2028 break; … … 2105 2107 { 2106 2108 st = aimbs_get16( &fr->data ); 2107 if( st == 0x0E ) 2109 if( st == 0x00 ) 2110 { 2111 imcb_add_buddy( sess->aux_data, list, NULL ); 2112 } 2113 else if( st == 0x0E ) 2108 2114 { 2109 2115 imcb_log( sess->aux_data, "Buddy %s can't be added without authorization, requesting authorization", list ); … … 2111 2117 aim_ssi_auth_request( sess, fr->conn, list, "" ); 2112 2118 aim_ssi_addbuddies( sess, fr->conn, OSCAR_GROUP, &list, 1, 1 ); 2119 } 2120 else 2121 { 2122 imcb_error( sess->aux_data, "Error while adding buddy: 0x%04x", st ); 2113 2123 } 2114 2124 list += strlen( list ) + 1;
Note: See TracChangeset
for help on using the changeset viewer.