changeset 1329:e2d8b713d928

[gaim-migrate @ 1339] Properly handles being disconnected due to signing on twice :) committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Wed, 20 Dec 2000 07:51:30 +0000
parents 49d2eb2baf02
children c7acd8435042
files plugins/napster.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/napster.c	Wed Dec 20 06:28:05 2000 +0000
+++ b/plugins/napster.c	Wed Dec 20 07:51:30 2000 +0000
@@ -335,6 +335,14 @@
 		return;
 	}
 
+	if (command == 0x2ec) {
+		/* Looks like someone logged in as us! =-O */
+		free(buf);
+
+		signoff(gc);
+		return;
+	}
+
 	printf("NAP: [COMMAND: 0x%04x] %s\n", command, buf);
 }