comparison src/protocols/yahoo/yahoo.c @ 8212:ad164c1ca79d

[gaim-migrate @ 8935] a yahoo web auth fix from marv that i debated whether to commit or not (as he did as well apparently fromt he message he left in the patch post) ;-) also: " Here's a large zephyr fix, tested against current CVS and also 0.75. It does thie following: Support a few additional zephyr formatting "@" tags, Using the gaim_chat_set_topic function to allow the user to set the instance that a zephyr is being sent to. Listing people in chats (really, the zephyr protocol doesn't allow for this, but I faked it by seeing who has sent to a class). Added proto options allowing for: setting the zephyr exposure (currently, just by entering the correct text string), and setting whether you want gaim to export to .zephyr.subs , and .anyone (buddy list). You also can add and remove buddies from within gaim. It also fixes a minor (but annoying bug), where random buffer garbage is sent with the zephyr, as an additional zephyr field." --Arun (att) A Tharuvai committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 05 Feb 2004 16:28:51 +0000
parents 9d1a984681fe
children dcace041cfb8
comparison
equal deleted inserted replaced
8211:99a87d90b570 8212:ad164c1ca79d
1920 char buf[1024], *i = buf; 1920 char buf[1024], *i = buf;
1921 int len; 1921 int len;
1922 GString *s; 1922 GString *s;
1923 1923
1924 len = read(source, buf, sizeof(buf)-1); 1924 len = read(source, buf, sizeof(buf)-1);
1925 if (len <= 0 || strncmp(buf, "HTTP/1.0 302", strlen("HTTP/1.0 302"))) { 1925 if (len <= 0 || (strncmp(buf, "HTTP/1.0 302", strlen("HTTP/1.0 302") &&
1926 strncmp(buf, "HTTP/1.1 302", strlen("HTTP/1.1 302"))))) {
1926 gaim_connection_error(gc, _("Unable to read")); 1927 gaim_connection_error(gc, _("Unable to read"));
1927 return; 1928 return;
1928 } 1929 }
1929 1930
1930 s = g_string_sized_new(len); 1931 s = g_string_sized_new(len);