diff src/main.c @ 7132:d17a587efeb3

[gaim-migrate @ 7699] new blist parser code, and some tweaks to the account code to make my next commit possible. the other parser code can get moved over to this model to make things cleaner, but i'm too lazy to do it now. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 03 Oct 2003 21:49:11 +0000
parents 9220c7490cd1
children e09020153d85
line wrap: on
line diff
--- a/src/main.c	Fri Oct 03 21:10:12 2003 +0000
+++ b/src/main.c	Fri Oct 03 21:49:11 2003 +0000
@@ -145,7 +145,7 @@
 	 * them, they just have to use the account editor to sign in 
 	 * the second one */
 
-	account = gaim_accounts_find(username, -1);
+	account = gaim_accounts_find(username, NULL);
 	if (!account) {
 		account = gaim_account_new(username, "prpl-oscar");
 		gaim_account_set_remember_password(account, TRUE);
@@ -173,7 +173,7 @@
 	if (name !=NULL) {	/* list of names given */
 		names = g_strsplit(name, ",", 32);
 		for (n = names; *n != NULL; n++) {
-			account = gaim_accounts_find(*n, -1);
+			account = gaim_accounts_find(*n, NULL);
 			if (account) {	/* found a user */
 				retval = 0;
 				gaim_account_connect(account);
@@ -203,7 +203,7 @@
 	const char *txt = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(combo)->entry));
 	GaimAccount *account;
 
-	account = gaim_accounts_find(txt, -1);
+	account = gaim_accounts_find(txt, NULL);
 
 	if (account && gaim_account_get_remember_password(account)) {
 		gtk_entry_set_text(GTK_ENTRY(pass), account->password);
@@ -463,7 +463,7 @@
 {
 	GaimAccount *account;
 
-	account = gaim_accounts_find(name, -1);
+	account = gaim_accounts_find(name, NULL);
 
 	if (account == NULL) { /* new user */
 		account = gaim_account_new(name, "prpl-oscar");