src/protocols/toc/toc.c

changeset 7094
8f9588491993
parent 7084
da83f7ead5c6
child 7095
17d2b54254f8
equal deleted inserted replaced
7093:2fef5364eb2b 7094:8f9588491993
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")) {

mercurial