diff -r 030c134febee -r c13d3ed737e7 plugins/napster.c --- a/plugins/napster.c Fri Jun 01 18:21:54 2001 +0000 +++ b/plugins/napster.c Fri Jun 01 18:31:30 2001 +0000 @@ -857,10 +857,21 @@ read(source, header, 4); len = header[0]; command = header[1]; - + read(source, buf, len); buf[len] = 0; + /* If we have some kind of error, get outta here */ + if (command == 0x00) + { + do_error_dialog(buf, "Gaim: Napster Error"); + gdk_input_remove(ndata->inpa); + ndata->inpa = 0; + close(source); + signoff(gc); + return; + } + if (command == 0x03) { printf("Registered with E-Mail address of: %s\n", buf); ndata->email = g_strdup(buf);