changeset 2853:f0633f458a1c

[gaim-migrate @ 2866] don't go in the FUCKING window committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 06 Dec 2001 20:13:24 +0000
parents 7a8fd0d5b9ed
children 86e74a0c2f6e
files src/protocols/toc/toc.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/toc/toc.c	Thu Dec 06 05:52:04 2001 +0000
+++ b/src/protocols/toc/toc.c	Thu Dec 06 20:13:24 2001 +0000
@@ -130,7 +130,6 @@
 
 static void toc_login_callback(gpointer, gint, GaimInputCondition);
 static void toc_callback(gpointer, gint, GaimInputCondition);
-static unsigned char *roast_password(char *);
 static void accept_file_dialog(struct ft_request *);
 
 /* ok. this function used to take username/password, and return 0 on success.
@@ -514,6 +513,9 @@
 		}
 
 		debug_printf("* Client sends TOC \"toc_signon\" message\n");
+		/* i hate icq. */
+		if (gc->username[0] >= '0' && gc->username[0] <= '9')
+			gc->password[9] = '\0';
 		g_snprintf(snd, sizeof snd, "toc_signon %s %d  %s %s %s \"%s\"",
 			   AUTH_HOST, AUTH_PORT, normalize(gc->username),
 			   roast_password(gc->password), LANGUAGE, REVISION);