Changes in protocols/oscar/oscar.c [3e1de87:9cb9868]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
r3e1de87 r9cb9868 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 static int gaim_parsemtn (aim_session_t *, aim_frame_t *, ...); 223 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);561 560 562 561 ((struct oscar_data *)gc->proto_data)->conn = bosconn; … … 1679 1678 1680 1679 /* Maybe senderwarn and recverwarn should be user preferences... */ 1681 params->flags = 0x0000000b;1682 1680 params->maxmsglen = 8000; 1683 1681 params->minmsginterval = 0; … … 2437 2435 } 2438 2436 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 2458 2437 static char *oscar_get_status_string( struct gaim_connection *gc, int number ) 2459 2438 { … … 2482 2461 return( "Away" ); 2483 2462 } 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) );2490 2463 } 2491 2464 … … 2512 2485 ret->get_status_string = oscar_get_status_string; 2513 2486 2514 ret->send_typing = oscar_send_typing;2515 2516 2487 my_protocol = ret; 2517 2488 }
Note: See TracChangeset
for help on using the changeset viewer.