Changes in protocols/oscar/oscar.c [75610c3:5a599a1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
r75610c3 r5a599a1 799 799 chatcon = find_oscar_chat_by_conn(ic, fr->conn); 800 800 chatcon->id = id; 801 chatcon->cnv = bee_chat_by_title(ic->bee, ic, chatcon->show); 802 if (chatcon->cnv == NULL) 803 chatcon->cnv = imcb_chat_new(ic, chatcon->show); 801 chatcon->cnv = imcb_chat_new(ic, chatcon->show); 804 802 chatcon->cnv->data = chatcon; 805 803 … … 1192 1190 aim_ssi_auth_reply(od->sess, od->conn, uin, 1, ""); 1193 1191 // aim_send_im_ch4(od->sess, uin, AIM_ICQMSG_AUTHGRANTED, &message); 1194 imcb_ask_add(data->ic, uin, NULL); 1192 if(imcb_find_buddy(data->ic, uin) == NULL) 1193 imcb_ask_add(data->ic, uin, NULL); 1195 1194 1196 1195 g_free(uin); … … 1953 1952 struct oscar_data *odata = (struct oscar_data *)g->proto_data; 1954 1953 if (odata->icq) { 1955 /** FIXME(wilmer): Hmm, lost the ability to get away msgs here, do we care to get that back?1956 1954 struct buddy *budlight = imcb_find_buddy(g, who); 1957 1955 if (budlight) … … 1959 1957 if (budlight->caps & AIM_CAPS_ICQSERVERRELAY) 1960 1958 aim_send_im_ch2_geticqmessage(odata->sess, who, (budlight->uc & 0xff80) >> 7); 1961 */1962 1959 } else 1963 1960 aim_getinfo(odata->sess, odata->conn, who, AIM_GETINFO_AWAYMESSAGE); … … 2097 2094 switch (curitem->type) { 2098 2095 case 0x0000: /* Buddy */ 2099 if ((curitem->name) && (!imcb_ buddy_by_handle(ic, nrm))) {2096 if ((curitem->name) && (!imcb_find_buddy(ic, nrm))) { 2100 2097 char *realname = NULL; 2101 2098 … … 2653 2650 static int chat_id = 0; 2654 2651 char * chatname; 2655 struct groupchat *c;2656 2652 2657 2653 chatname = g_strdup_printf("%s%s_%d", isdigit(*ic->acc->user) ? "icq_" : "", 2658 2654 ic->acc->user, chat_id++); 2659 2660 c = imcb_chat_new(ic, chatname); 2661 2655 2662 2656 ret = oscar_chat_join(ic, chatname, NULL, NULL); 2663 2657
Note: See TracChangeset
for help on using the changeset viewer.