Mercurial > pidgin
comparison src/protocols/yahoo/yahoo.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 | 7de1b559cbbb |
children | 6290e7aeabfe |
comparison
equal
deleted
inserted
replaced
6981:abd3c684da31 | 6982:083d1e4a9c78 |
---|---|
680 | 680 |
681 msg = pair->value; | 681 msg = pair->value; |
682 | 682 |
683 strip_linefeed(msg); | 683 strip_linefeed(msg); |
684 m = yahoo_codes_to_html(msg); | 684 m = yahoo_codes_to_html(msg); |
685 serv_got_im(gc, from, m, 0, tm, -1); | 685 serv_got_im(gc, from, m, 0, tm); |
686 g_free(m); | 686 g_free(m); |
687 | 687 |
688 tm = time(NULL); | 688 tm = time(NULL); |
689 } | 689 } |
690 l = l->next; | 690 l = l->next; |
1643 m = g_list_append(m, pam); | 1643 m = g_list_append(m, pam); |
1644 | 1644 |
1645 return m; | 1645 return m; |
1646 } | 1646 } |
1647 | 1647 |
1648 static int yahoo_send_im(GaimConnection *gc, const char *who, const char *what, int len, GaimImFlags flags) | 1648 static int yahoo_send_im(GaimConnection *gc, const char *who, const char *what, GaimImFlags flags) |
1649 { | 1649 { |
1650 struct yahoo_data *yd = gc->proto_data; | 1650 struct yahoo_data *yd = gc->proto_data; |
1651 struct yahoo_packet *pkt = yahoo_packet_new(YAHOO_SERVICE_MESSAGE, YAHOO_STATUS_OFFLINE, 0); | 1651 struct yahoo_packet *pkt = yahoo_packet_new(YAHOO_SERVICE_MESSAGE, YAHOO_STATUS_OFFLINE, 0); |
1652 char *msg = yahoo_html_to_codes(what); | 1652 char *msg = yahoo_html_to_codes(what); |
1653 | 1653 |