comparison plugins/napster.c @ 1424:9d8cf2e12e68

[gaim-migrate @ 1434] Umm committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Thu, 25 Jan 2001 00:54:42 +0000
parents 6e0883ee51ce
children 28278bd61403
comparison
equal deleted inserted replaced
1423:def9a3f6b407 1424:9d8cf2e12e68
765 char c; 765 char c;
766 char z[4]; 766 char z[4];
767 int i; 767 int i;
768 int status; 768 int status;
769 769
770 // host = gethostbyname("208.184.216.24"); 770 host = gethostbyname("n184.napster.com");
771 host = gethostbyname("213.254.1.82");
772 771
773 if (!host) { 772 if (!host) {
774 hide_login_progress(gc, "Unable to resolve hostname"); 773 hide_login_progress(gc, "Unable to resolve hostname");
775 signoff(gc); 774 signoff(gc);
776 return; 775 return;
800 g_snprintf(buf, NAP_BUF_LEN, "%s %s 0 \"Gaim - Napster Plugin\" 0", gc->username, gc->password); 799 g_snprintf(buf, NAP_BUF_LEN, "%s %s 0 \"Gaim - Napster Plugin\" 0", gc->username, gc->password);
801 nap_write_packet(gc, 0x02, buf); 800 nap_write_packet(gc, 0x02, buf);
802 801
803 /* And set up the input watcher */ 802 /* And set up the input watcher */
804 ndata->inpa = gdk_input_add(ndata->fd, GDK_INPUT_READ, nap_login_callback, gc); 803 ndata->inpa = gdk_input_add(ndata->fd, GDK_INPUT_READ, nap_login_callback, gc);
804
805 805
806 } 806 }
807 807
808 static void nap_join_chat(struct gaim_connection *gc, int id, char *name) 808 static void nap_join_chat(struct gaim_connection *gc, int id, char *name)
809 { 809 {