Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r5a599a1 r75610c3  
    799799        chatcon = find_oscar_chat_by_conn(ic, fr->conn);
    800800        chatcon->id = id;
    801         chatcon->cnv = imcb_chat_new(ic, chatcon->show);
     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);
    802804        chatcon->cnv->data = chatcon;
    803805
     
    11901192        aim_ssi_auth_reply(od->sess, od->conn, uin, 1, "");
    11911193        // aim_send_im_ch4(od->sess, uin, AIM_ICQMSG_AUTHGRANTED, &message);
    1192         if(imcb_find_buddy(data->ic, uin) == NULL)
    1193                 imcb_ask_add(data->ic, uin, NULL);
     1194        imcb_ask_add(data->ic, uin, NULL);
    11941195       
    11951196        g_free(uin);
     
    19521953        struct oscar_data *odata = (struct oscar_data *)g->proto_data;
    19531954        if (odata->icq) {
     1955                /** FIXME(wilmer): Hmm, lost the ability to get away msgs here, do we care to get that back?
    19541956                struct buddy *budlight = imcb_find_buddy(g, who);
    19551957                if (budlight)
     
    19571959                                if (budlight->caps & AIM_CAPS_ICQSERVERRELAY)
    19581960                                        aim_send_im_ch2_geticqmessage(odata->sess, who, (budlight->uc & 0xff80) >> 7);
     1961                */
    19591962        } else
    19601963                aim_getinfo(odata->sess, odata->conn, who, AIM_GETINFO_AWAYMESSAGE);
     
    20942097                switch (curitem->type) {
    20952098                        case 0x0000: /* Buddy */
    2096                                 if ((curitem->name) && (!imcb_find_buddy(ic, nrm))) {
     2099                                if ((curitem->name) && (!imcb_buddy_by_handle(ic, nrm))) {
    20972100                                        char *realname = NULL;
    20982101
     
    26502653        static int chat_id = 0;
    26512654        char * chatname;
     2655        struct groupchat *c;
    26522656       
    26532657        chatname = g_strdup_printf("%s%s_%d", isdigit(*ic->acc->user) ? "icq_" : "",
    26542658                                   ic->acc->user, chat_id++);
    2655  
     2659       
     2660        c = imcb_chat_new(ic, chatname);
     2661
    26562662        ret = oscar_chat_join(ic, chatname, NULL, NULL);
    26572663
Note: See TracChangeset for help on using the changeset viewer.