comparison src/protocols/toc/toc.c @ 7094:2343c3aa1dec

[gaim-migrate @ 7659] grab_url() and parse_url() are gone, replaced with gaim_url_fetch() and gaim_url_parse(). They were also moved to util.[ch]. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 01 Oct 2003 03:01:25 +0000
parents 0909ebf6fb28
children c8bf2da398e3
comparison
equal deleted inserted replaced
7093:3650612c7daa 7094:2343c3aa1dec
489 pos += sprintf(&rp[pos], "%02x", pass[x] ^ roast[x % strlen(roast)]); 489 pos += sprintf(&rp[pos], "%02x", pass[x] ^ roast[x % strlen(roast)]);
490 rp[pos] = '\0'; 490 rp[pos] = '\0';
491 return rp; 491 return rp;
492 } 492 }
493 493
494 static void toc_got_info(gpointer data, char *url_text, unsigned long len) 494 static void toc_got_info(void *data, const char *url_text, size_t len)
495 { 495 {
496 if (!url_text) 496 if (!url_text)
497 return; 497 return;
498 498
499 gaim_notify_formatted(data, NULL, _("Buddy Information"), NULL, 499 gaim_notify_formatted(data, NULL, _("Buddy Information"), NULL,
895 url = strtok(NULL, ":"); 895 url = strtok(NULL, ":");
896 896
897 g_snprintf(tmp, sizeof(tmp), "http://%s:%d/%s", tdt->toc_ip, 897 g_snprintf(tmp, sizeof(tmp), "http://%s:%d/%s", tdt->toc_ip,
898 gaim_account_get_int(gc->account, "port", TOC_PORT), 898 gaim_account_get_int(gc->account, "port", TOC_PORT),
899 url); 899 url);
900 grab_url(tmp, FALSE, toc_got_info, gc, NULL, 0); 900 gaim_url_fetch(tmp, FALSE, NULL, FALSE, toc_got_info, gc);
901 } else if (!g_ascii_strcasecmp(c, "DIR_STATUS")) { 901 } else if (!g_ascii_strcasecmp(c, "DIR_STATUS")) {
902 } else if (!g_ascii_strcasecmp(c, "ADMIN_NICK_STATUS")) { 902 } else if (!g_ascii_strcasecmp(c, "ADMIN_NICK_STATUS")) {
903 } else if (!g_ascii_strcasecmp(c, "ADMIN_PASSWD_STATUS")) { 903 } else if (!g_ascii_strcasecmp(c, "ADMIN_PASSWD_STATUS")) {
904 gaim_notify_info(gc, NULL, _("Password Change Successful"), NULL); 904 gaim_notify_info(gc, NULL, _("Password Change Successful"), NULL);
905 } else if (!g_ascii_strcasecmp(c, "PAUSE")) { 905 } else if (!g_ascii_strcasecmp(c, "PAUSE")) {