[gaim-migrate @ 2866]

Thu, 06 Dec 2001 20:13:24 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Thu, 06 Dec 2001 20:13:24 +0000
changeset 2853
f9e281f35b79
parent 2852
e7fec89c57f1
child 2854
45e56f3229ce

[gaim-migrate @ 2866]
don't go in the FUCKING window

src/protocols/toc/toc.c file | annotate | diff | comparison | revisions
--- 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);

mercurial