comparison plugins/napster.c @ 1935:22a3b4b52971

[gaim-migrate @ 1945] Hooray. :-) committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Fri, 01 Jun 2001 18:31:30 +0000
parents a02584b98823
children 8de58cd2892f
comparison
equal deleted inserted replaced
1934:e875b1cb2470 1935:22a3b4b52971
855 int command; 855 int command;
856 856
857 read(source, header, 4); 857 read(source, header, 4);
858 len = header[0]; 858 len = header[0];
859 command = header[1]; 859 command = header[1];
860 860
861 read(source, buf, len); 861 read(source, buf, len);
862 buf[len] = 0; 862 buf[len] = 0;
863
864 /* If we have some kind of error, get outta here */
865 if (command == 0x00)
866 {
867 do_error_dialog(buf, "Gaim: Napster Error");
868 gdk_input_remove(ndata->inpa);
869 ndata->inpa = 0;
870 close(source);
871 signoff(gc);
872 return;
873 }
863 874
864 if (command == 0x03) { 875 if (command == 0x03) {
865 printf("Registered with E-Mail address of: %s\n", buf); 876 printf("Registered with E-Mail address of: %s\n", buf);
866 ndata->email = g_strdup(buf); 877 ndata->email = g_strdup(buf);
867 878