comparison src/protocols/yahoo/yahoo.c @ 8057:2c4cfb63ce60

[gaim-migrate @ 8743] Unstringfreezebreakinate. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 10 Jan 2004 05:04:09 +0000
parents fa6395637e2c
children b00d7fe62596
comparison
equal deleted inserted replaced
8056:e8e17c529608 8057:2c4cfb63ce60
1849 close(source); 1849 close(source);
1850 return; 1850 return;
1851 } 1851 }
1852 1852
1853 if (source < 0) { 1853 if (source < 0) {
1854 gaim_connection_error(gc, _("Unable to connect")); 1854 gaim_connection_error(gc, _("Unable to connect."));
1855 return; 1855 return;
1856 } 1856 }
1857 1857
1858 yd = gc->proto_data; 1858 yd = gc->proto_data;
1859 yd->fd = source; 1859 yd->fd = source;
1880 close(source); 1880 close(source);
1881 return; 1881 return;
1882 } 1882 }
1883 1883
1884 if (source < 0) { 1884 if (source < 0) {
1885 gaim_connection_error(gc, _("Unable to connect")); 1885 gaim_connection_error(gc, _("Unable to connect."));
1886 return; 1886 return;
1887 } 1887 }
1888 1888
1889 yd = gc->proto_data; 1889 yd = gc->proto_data;
1890 yd->fd = source; 1890 yd->fd = source;
1943 static void yahoo_got_cookies(gpointer data, gint source, GaimInputCondition cond) 1943 static void yahoo_got_cookies(gpointer data, gint source, GaimInputCondition cond)
1944 { 1944 {
1945 GaimConnection *gc = data; 1945 GaimConnection *gc = data;
1946 struct yahoo_data *yd = gc->proto_data; 1946 struct yahoo_data *yd = gc->proto_data;
1947 if (source < 0) { 1947 if (source < 0) {
1948 gaim_connection_error(gc, _("Unable to connect")); 1948 gaim_connection_error(gc, _("Unable to connect."));
1949 return; 1949 return;
1950 } 1950 }
1951 write(source, yd->auth, strlen(yd->auth)); 1951 write(source, yd->auth, strlen(yd->auth));
1952 g_free(yd->auth); 1952 g_free(yd->auth);
1953 gc->inpa = gaim_input_add(source, GAIM_INPUT_READ, yahoo_web_pending, gc); 1953 gc->inpa = gaim_input_add(source, GAIM_INPUT_READ, yahoo_web_pending, gc);
2701 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; 2701 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data;
2702 struct yahoo_packet *pkt; 2702 struct yahoo_packet *pkt;
2703 2703
2704 if (!yd->logged_in) 2704 if (!yd->logged_in)
2705 return; 2705 return;
2706 2706 /* It seems to work better without this */
2707 if (gc->account->perm_deny != 4) 2707
2708 return; 2708
2709 2709 /*
2710 if (!who || who[0] == '\0') 2710 * if (gc->account->perm_deny != 4)
2711 return; 2711 * return;
2712 2712 *
2713 * if (!who || who[0] == '\0')
2714 * return;
2715 */
2716
2713 pkt = yahoo_packet_new(YAHOO_SERVICE_IGNORECONTACT, YAHOO_STATUS_AVAILABLE, 0); 2717 pkt = yahoo_packet_new(YAHOO_SERVICE_IGNORECONTACT, YAHOO_STATUS_AVAILABLE, 0);
2714 yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc)); 2718 yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc));
2715 yahoo_packet_hash(pkt, 7, who); 2719 yahoo_packet_hash(pkt, 7, who);
2716 yahoo_packet_hash(pkt, 13, "1"); 2720 yahoo_packet_hash(pkt, 13, "1");
2717 yahoo_send_packet(yd, pkt); 2721 yahoo_send_packet(yd, pkt);