Changeset 03ad7b2
- Timestamp:
- Jun 29, 2003, 1:44:19 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 862371b
- Parents:
- 290f290
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r290f290 r03ad7b2 3 3 2.0.6-pre-1 4 4 Initialze $owl::auth 5 'addbuddy aim' now works and 'delbuddy aim' mostly works 5 6 6 7 2.0.5 -
aim.c
rdff8d8a r03ad7b2 177 177 void owl_aim_addbuddy(char *screenname) 178 178 { 179 aim_add_buddy(owl_global_get_aimsess(&g), owl_global_get_waitingconn(&g), screenname); 179 const char **foo; 180 181 /* 182 aim_bos_setbuddylist(owl_global_get_aimsess(&g), 183 aim_getconn_type(owl_global_get_aimsess(&g), AIM_CONN_TYPE_BOS), 184 foo); 185 */ 186 187 /* 188 aim_add_buddy(owl_global_get_aimsess(&g), 189 aim_getconn_type(owl_global_get_aimsess(&g), AIM_CONN_TYPE_BOS), 190 screenname); 191 */ 192 193 foo=(char *) owl_malloc(30); 194 foo[0]=screenname; 195 aim_ssi_addbuddies(owl_global_get_aimsess(&g), 196 aim_getconn_type(owl_global_get_aimsess(&g), AIM_CONN_TYPE_BOS), 197 "Buddies", foo, 1); 198 owl_free(foo); 199 180 200 } 181 201 182 202 void owl_aim_delbuddy(char *screenname) 183 203 { 184 aim_remove_buddy(owl_global_get_aimsess(&g), NULL, screenname); 204 /* 205 aim_remove_buddy(owl_global_get_aimsess(&g), 206 aim_getconn_type(owl_global_get_aimsess(&g), AIM_CONN_TYPE_BOS), 207 screenname); 208 */ 209 210 aim_ssi_delbuddies(owl_global_get_aimsess(&g), 211 aim_getconn_type(owl_global_get_aimsess(&g), AIM_CONN_TYPE_BOS), 212 "Buddies", &screenname, 1); 213 185 214 } 186 215 … … 286 315 { 287 316 struct owlfaim_priv *priv = (struct owlfaim_priv *)sess->aux_data; 288 struct client_info_s info = AIM_CLIENTINFO_KNOWNGOOD; 317 struct client_info_s info = CLIENTINFO_AIM_KNOWNGOOD; 318 289 319 char *key; 290 320 va_list ap; … … 434 464 snprintf(profile, sizeof(profile), "Hello.<br>This is a test"); 435 465 */ 466 strcpy(profile, ""); 436 467 437 468 aim_reqpersonalinfo(sess, fr->conn); 438 469 aim_bos_reqlocaterights(sess, fr->conn); 439 470 440 /* aim_bos_setprofile(sess, fr->conn, profile, awaymsg, AIM_CAPS_BUDDYICON | AIM_CAPS_CHAT | AIM_CAPS_GETFILE | AIM_CAPS_SENDFILE | AIM_CAPS_IMIMAGE | AIM_CAPS_GAMES | AIM_CAPS_SAVESTOCKS | AIM_CAPS_SENDBUDDYLIST | AIM_CAPS_ICQ | AIM_CAPS_ICQUNKNOWN | AIM_CAPS_ICQRTF | AIM_CAPS_ICQSERVERRELAY | AIM_CAPS_TRILLIANCRYPT); */441 aim_bos_setprofile(sess, fr->conn, profile, "", AIM_CAPS_SENDBUDDYLIST | AIM_CAPS_CHAT );471 /* aim_bos_setprofile(sess, fr->conn, profile, awaymsg, AIM_CAPS_BUDDYICON | AIM_CAPS_CHAT | AIM_CAPS_GETFILE | AIM_CAPS_SENDFILE | AIM_CAPS_IMIMAGE | AIM_CAPS_GAMES | AIM_CAPS_SAVESTOCKS | AIM_CAPS_SENDBUDDYLIST | AIM_CAPS_ICQ | AIM_CAPS_ICQUNKNOWN | AIM_CAPS_ICQRTF | AIM_CAPS_ICQSERVERRELAY | AIM_CAPS_TRILLIANCRYPT); */ 472 aim_bos_setprofile(sess, fr->conn, "", "", AIM_CAPS_SENDBUDDYLIST ); 442 473 aim_bos_reqbuddyrights(sess, fr->conn); 443 474 … … 2087 2118 newbuf[z] = (z % 10)+0x30; 2088 2119 newbuf[i] = '\0'; 2089 aim_send_im_direct(sess, fr->conn, newbuf );2120 aim_send_im_direct(sess, fr->conn, newbuf, strlen(newbuf), 0); 2090 2121 free(newbuf); 2091 2122 } 2092 2123 } else if (strstr(msg, "goodday")) { 2093 aim_send_im_direct(sess, fr->conn, "Good day to you, too" );2124 aim_send_im_direct(sess, fr->conn, "Good day to you, too", 18, 0); 2094 2125 } else { 2095 2126 char newmsg[1024]; 2096 2127 snprintf(newmsg, sizeof(newmsg), "unknown (%s)\n", msg); 2097 aim_send_im_direct(sess, fr->conn, newmsg );2128 aim_send_im_direct(sess, fr->conn, newmsg, strlen(newmsg), 0); 2098 2129 } 2099 2130 … … 2129 2160 aim_conn_addhandler(sess, newconn, AIM_CB_FAM_OFT, AIM_CB_OFT_DIRECTIMTYPING, directim_typing, 0); 2130 2161 2131 aim_send_im_direct(sess, newconn, "goodday" );2162 aim_send_im_direct(sess, newconn, "goodday", 8, 0); 2132 2163 2133 2164 /* printf("OFT: DirectIM: connected to %s\n", aim_directim_getsn(newconn)); */ … … 2301 2332 /* printf("requesting %d %s(%d long)\n", namelen, filename, filesize); */ 2302 2333 2303 aim_oft_getfile_request(sess, conn, filename, filesize);2334 /* aim_oft_getfile_request(sess, conn, filename, filesize); */ 2304 2335 2305 2336 free(filename); … … 2361 2392 static int faimtest_getfile_receive(aim_session_t *sess, aim_frame_t *fr, ...) 2362 2393 { 2394 /* needs ot be fixed --kretch */ 2395 #if 0 2363 2396 va_list ap; 2364 2397 aim_conn_t *conn; … … 2366 2399 unsigned char data; 2367 2400 int pos; 2368 2401 2402 2369 2403 va_start(ap, fr); 2370 2404 conn = va_arg(ap, aim_conn_t *); … … 2382 2416 2383 2417 aim_oft_getfile_end(sess, conn); 2418 #endif 2384 2419 return 0; 2385 2420 } … … 2413 2448 aim_conn_close(listenerconn); 2414 2449 aim_conn_kill(sess, &listenerconn); 2415 2450 2451 /* This doesn't work with the new libfaim */ 2416 2452 aim_conn_addhandler(sess, conn, AIM_CB_FAM_OFT, AIM_CB_OFT_GETFILEFILEREQ, faimtest_getfile_filereq, 0); 2417 2453 aim_conn_addhandler(sess, conn, AIM_CB_FAM_OFT, AIM_CB_OFT_GETFILEFILESEND, faimtest_getfile_filesend, 0); … … 2498 2534 aim_conn_addhandler(sess, newconn, AIM_CB_FAM_OFT, AIM_CB_OFT_DIRECTIMTYPING, directim_typing, 0); 2499 2535 /* printf("OFT: DirectIM: connected to %s\n", userinfo->sn); */ 2500 aim_send_im_direct(sess, newconn, "goodday" );2536 aim_send_im_direct(sess, newconn, "goodday", 7, 0); 2501 2537 } 2502 2538 } -
commands.c
r94e4899 r03ad7b2 922 922 return(NULL); 923 923 } 924 /* 924 925 owl_function_makemsg("This function is not yet operational. Stay tuned."); 925 926 return(NULL); 927 */ 926 928 owl_aim_addbuddy(argv[2]); 927 929 owl_function_makemsg("%s added as AIM buddy for %s", argv[2], owl_global_get_aim_screenname(&g)); … … 948 950 return(NULL); 949 951 } 952 /* 950 953 owl_function_makemsg("This function is not yet operational. Stay tuned."); 951 954 return(NULL); 955 */ 952 956 owl_aim_delbuddy(argv[2]); 953 957 owl_function_makemsg("%s deleted as AIM buddy for %s", argv[2], owl_global_get_aim_screenname(&g));
Note: See TracChangeset
for help on using the changeset viewer.