Changeset 3e1de87 for protocols/oscar/oscar.c
- Timestamp:
- 2005-11-19T11:12:18Z (18 years ago)
- Branches:
- master
- Children:
- 4d50898
- Parents:
- 0b2e843
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
r0b2e843 r3e1de87 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 *, ...); … … 558 558 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_SSI, AIM_CB_SSI_SRVACK, gaim_ssi_parseack, 0); 559 559 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_LOC, AIM_CB_LOC_USERINFO, gaim_parseaiminfo, 0); 560 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_MSG, AIM_CB_MSG_MTN, gaim_parsemtn, 0); 560 561 561 562 ((struct oscar_data *)gc->proto_data)->conn = bosconn; … … 1678 1679 1679 1680 /* Maybe senderwarn and recverwarn should be user preferences... */ 1681 params->flags = 0x0000000b; 1680 1682 params->maxmsglen = 8000; 1681 1683 params->minmsginterval = 0; … … 2435 2437 } 2436 2438 2439 int gaim_parsemtn(aim_session_t *sess, aim_frame_t *fr, ...) 2440 { 2441 struct gaim_connection * gc = sess->aux_data; 2442 va_list ap; 2443 guint16 type1, type2; 2444 char * sn; 2445 2446 va_start(ap, fr); 2447 type1 = va_arg(ap, int); 2448 sn = va_arg(ap, char*); 2449 type2 = va_arg(ap, int); 2450 va_end(ap); 2451 2452 if(type2 == 0x0001 || type2 == 0x0002) 2453 serv_got_typing(gc, sn, 0); 2454 2455 return 1; 2456 } 2457 2437 2458 static char *oscar_get_status_string( struct gaim_connection *gc, int number ) 2438 2459 { … … 2461 2482 return( "Away" ); 2462 2483 } 2484 } 2485 2486 int oscar_send_typing(struct gaim_connection *gc, char * who, int typing) 2487 { 2488 struct oscar_data *od = gc->proto_data; 2489 return( aim_im_sendmtn(od->sess, 1, who, typing ? 0x0002 : 0x0000) ); 2463 2490 } 2464 2491 … … 2485 2512 ret->get_status_string = oscar_get_status_string; 2486 2513 2514 ret->send_typing = oscar_send_typing; 2515 2487 2516 my_protocol = ret; 2488 2517 }
Note: See TracChangeset
for help on using the changeset viewer.