Changes in protocols/oscar/oscar.c [56699f0:3dc6d86]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
r56699f0 r3dc6d86 254 254 255 255 u = t = g_strdup(s); 256 257 strcpy(t, s); 256 258 g_strdown(t); 257 259 … … 288 290 odata = (struct oscar_data *)ic->proto_data; 289 291 290 if (condition & B_EV_IO_READ) {292 if (condition & GAIM_INPUT_READ) { 291 293 if (aim_get_command(odata->sess, conn) >= 0) { 292 294 aim_rxdispatch(odata->sess); … … 360 362 361 363 aim_conn_completeconnect(sess, conn); 362 ic->inpa = b_input_add(conn->fd, B_EV_IO_READ,364 ic->inpa = b_input_add(conn->fd, GAIM_INPUT_READ, 363 365 oscar_callback, conn); 364 366 … … 491 493 492 494 aim_conn_completeconnect(sess, bosconn); 493 ic->inpa = b_input_add(bosconn->fd, B_EV_IO_READ,495 ic->inpa = b_input_add(bosconn->fd, GAIM_INPUT_READ, 494 496 oscar_callback, bosconn); 495 497 imcb_log(ic, _("Connection established, cookie sent")); … … 650 652 struct im_connection *ic = sess->aux_data; 651 653 struct chat_connection *chatcon; 652 struct groupchat *c = NULL;653 654 static int id = 1; 654 655 … … 663 664 chatcon = find_oscar_chat_by_conn(ic, fr->conn); 664 665 chatcon->id = id; 665 666 c = bee_chat_by_title(ic->bee, ic, chatcon->show); 667 if (c && !c->data) 668 chatcon->cnv = c; 669 else 670 chatcon->cnv = imcb_chat_new(ic, chatcon->show); 666 chatcon->cnv = imcb_chat_new(ic, chatcon->show); 671 667 chatcon->cnv->data = chatcon; 672 668 … … 707 703 708 704 aim_conn_completeconnect(sess, tstconn); 709 odata->cnpa = b_input_add(tstconn->fd, B_EV_IO_READ,705 odata->cnpa = b_input_add(tstconn->fd, GAIM_INPUT_READ, 710 706 oscar_callback, tstconn); 711 707 … … 735 731 736 732 aim_conn_completeconnect(sess, tstconn); 737 odata->paspa = b_input_add(tstconn->fd, B_EV_IO_READ,733 odata->paspa = b_input_add(tstconn->fd, GAIM_INPUT_READ, 738 734 oscar_callback, tstconn); 739 735 … … 771 767 aim_conn_completeconnect(sess, ccon->conn); 772 768 ccon->inpa = b_input_add(tstconn->fd, 773 B_EV_IO_READ,769 GAIM_INPUT_READ, 774 770 oscar_callback, tstconn); 775 771 odata->oscar_chats = g_slist_append(odata->oscar_chats, ccon); … … 938 934 tmp = normalize(info->sn); 939 935 imcb_buddy_status(ic, tmp, flags, state_string, NULL); 940 imcb_buddy_times(ic, tmp, signon, time_idle);936 /* imcb_buddy_times(ic, tmp, signon, time_idle); */ 941 937 942 938 … … 1064 1060 aim_ssi_auth_reply(od->sess, od->conn, uin, 1, ""); 1065 1061 // aim_send_im_ch4(od->sess, uin, AIM_ICQMSG_AUTHGRANTED, &message); 1066 imcb_ask_add(data->ic, uin, NULL); 1062 if(imcb_find_buddy(data->ic, uin) == NULL) 1063 imcb_ask_add(data->ic, uin, NULL); 1067 1064 1068 1065 g_free(uin); … … 1825 1822 struct oscar_data *odata = (struct oscar_data *)g->proto_data; 1826 1823 if (odata->icq) { 1827 /** FIXME(wilmer): Hmm, lost the ability to get away msgs here, do we care to get that back?1828 1824 struct buddy *budlight = imcb_find_buddy(g, who); 1829 1825 if (budlight) … … 1831 1827 if (budlight->caps & AIM_CAPS_ICQSERVERRELAY) 1832 1828 aim_send_im_ch2_geticqmessage(odata->sess, who, (budlight->uc & 0xff80) >> 7); 1833 */1834 1829 } else 1835 1830 aim_getinfo(odata->sess, odata->conn, who, AIM_GETINFO_AWAYMESSAGE); … … 1958 1953 static int gaim_ssi_parselist(aim_session_t *sess, aim_frame_t *fr, ...) { 1959 1954 struct im_connection *ic = sess->aux_data; 1960 struct aim_ssi_item *curitem , *curgroup;1955 struct aim_ssi_item *curitem; 1961 1956 int tmp; 1962 1957 char *nrm; … … 1969 1964 switch (curitem->type) { 1970 1965 case 0x0000: /* Buddy */ 1971 if ((curitem->name) && (!imcb_ buddy_by_handle(ic, nrm))) {1966 if ((curitem->name) && (!imcb_find_buddy(ic, nrm))) { 1972 1967 char *realname = NULL; 1973 1968 1974 1969 if (curitem->data && aim_gettlv(curitem->data, 0x0131, 1)) 1975 1970 realname = aim_gettlv_str(curitem->data, 0x0131, 1); 1976 1977 imcb_add_buddy(ic, nrm, curgroup->gid == curitem->gid ? curgroup->name :NULL);1971 1972 imcb_add_buddy(ic, nrm, NULL); 1978 1973 1979 1974 if (realname) { … … 1983 1978 } 1984 1979 } 1985 break;1986 1987 case 0x0001: /* Group */1988 curgroup = curitem;1989 1980 break; 1990 1981 … … 2529 2520 static int chat_id = 0; 2530 2521 char * chatname; 2531 struct groupchat *c;2532 2522 2533 2523 chatname = g_strdup_printf("%s%s_%d", isdigit(*ic->acc->user) ? "icq_" : "", 2534 2524 ic->acc->user, chat_id++); 2535 2536 c = imcb_chat_new(ic, chatname); 2525 2537 2526 ret = oscar_chat_join(ic, chatname, NULL, NULL); 2527 2538 2528 aim_chat_invite(od->sess, od->conn, who, "", 4, chatname, 0x0); 2539 2529
Note: See TracChangeset
for help on using the changeset viewer.