comparison src/protocols/msn/msn.c @ 6982:083d1e4a9c78

[gaim-migrate @ 7538] This is Mr. Holland's Opus. And by Mr. Holland I mean Robot101. He rewrote the coreish IM image support so that the binary data gets ripped out in the prpl and put in an imgstore instead of just being passed in the same huge as char string as the actual message. This is good because it's prpl agnostic, or something. It also means we don't have a silly length of "-1" with pretty much every send or receive IM function. It should be crash free, bug free, and memleak free, but additional testing is always a good thing. If you like good stuff then you'll love this patch. But don't take my word for it--ba dun dunt! committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 27 Sep 2003 19:17:21 +0000
parents 31a8936bbccc
children dece74f05509
comparison
equal deleted inserted replaced
6981:abd3c684da31 6982:083d1e4a9c78
476 gc->proto_data = NULL; 476 gc->proto_data = NULL;
477 } 477 }
478 478
479 static int 479 static int
480 msn_send_im(GaimConnection *gc, const char *who, const char *message, 480 msn_send_im(GaimConnection *gc, const char *who, const char *message,
481 int len, GaimImFlags flags) 481 GaimImFlags flags)
482 { 482 {
483 GaimAccount *account = gaim_connection_get_account(gc); 483 GaimAccount *account = gaim_connection_get_account(gc);
484 MsnSession *session = gc->proto_data; 484 MsnSession *session = gc->proto_data;
485 MsnSwitchBoard *swboard; 485 MsnSwitchBoard *swboard;
486 486
523 * In MSN, you can't send messages to yourself, so 523 * In MSN, you can't send messages to yourself, so
524 * we'll fake like we received it ;) 524 * we'll fake like we received it ;)
525 */ 525 */
526 serv_got_typing_stopped(gc, (char *)who); 526 serv_got_typing_stopped(gc, (char *)who);
527 serv_got_im(gc, who, message, flags, 527 serv_got_im(gc, who, message, flags,
528 time(NULL), -1); 528 time(NULL));
529 } 529 }
530 530
531 return 1; 531 return 1;
532 } 532 }
533 533