Changeset 9c8ae50 for protocols/oscar/oscar.c
- Timestamp:
- 2005-11-19T15:24:46Z (19 years ago)
- Branches:
- master
- Children:
- cf13671
- Parents:
- cc9079e (diff), 2cdd8ce (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
rcc9079e r9c8ae50 221 221 static int gaim_ssi_parselist (aim_session_t *, aim_frame_t *, ...); 222 222 static int gaim_ssi_parseack (aim_session_t *, aim_frame_t *, ...); 223 223 static int gaim_parsemtn (aim_session_t *, aim_frame_t *, ...); 224 224 static int gaim_icqinfo (aim_session_t *, aim_frame_t *, ...); 225 225 static int gaim_parseaiminfo (aim_session_t *, aim_frame_t *, ...); … … 556 556 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_SSI, AIM_CB_SSI_SRVACK, gaim_ssi_parseack, 0); 557 557 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_LOC, AIM_CB_LOC_USERINFO, gaim_parseaiminfo, 0); 558 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_MSG, AIM_CB_MSG_MTN, gaim_parsemtn, 0); 558 559 559 560 ((struct oscar_data *)gc->proto_data)->conn = bosconn; … … 1676 1677 1677 1678 /* Maybe senderwarn and recverwarn should be user preferences... */ 1679 params->flags = 0x0000000b; 1678 1680 params->maxmsglen = 8000; 1679 1681 params->minmsginterval = 0; … … 2433 2435 } 2434 2436 2437 int gaim_parsemtn(aim_session_t *sess, aim_frame_t *fr, ...) 2438 { 2439 struct gaim_connection * gc = sess->aux_data; 2440 va_list ap; 2441 guint16 type1, type2; 2442 char * sn; 2443 2444 va_start(ap, fr); 2445 type1 = va_arg(ap, int); 2446 sn = va_arg(ap, char*); 2447 type2 = va_arg(ap, int); 2448 va_end(ap); 2449 2450 if(type2 == 0x0001 || type2 == 0x0002) 2451 serv_got_typing(gc, sn, 0); 2452 2453 return 1; 2454 } 2455 2435 2456 static char *oscar_get_status_string( struct gaim_connection *gc, int number ) 2436 2457 { … … 2459 2480 return( "Away" ); 2460 2481 } 2482 } 2483 2484 int oscar_send_typing(struct gaim_connection *gc, char * who, int typing) 2485 { 2486 struct oscar_data *od = gc->proto_data; 2487 return( aim_im_sendmtn(od->sess, 1, who, typing ? 0x0002 : 0x0000) ); 2461 2488 } 2462 2489 … … 2482 2509 ret->cmp_buddynames = aim_sncmp; 2483 2510 ret->get_status_string = oscar_get_status_string; 2511 ret->send_typing = oscar_send_typing; 2484 2512 2485 2513 register_protocol(ret);
Note: See TracChangeset
for help on using the changeset viewer.