diff plugins/autorecon.c @ 4491:3196d9044a45

[gaim-migrate @ 4766] aim_user is dead. long live gaim_account. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 31 Jan 2003 13:03:47 +0000
parents 59751fe608c5
children b5a50a6a13b0
line wrap: on
line diff
--- a/plugins/autorecon.c	Fri Jan 31 06:51:49 2003 +0000
+++ b/plugins/autorecon.c	Fri Jan 31 13:03:47 2003 +0000
@@ -19,10 +19,10 @@
 static guint tim = 0;
 
 static gboolean do_signon(gpointer data) {
-	struct aim_user *u = data;
-	if (g_slist_index(aim_users, u) < 0)
+	struct gaim_account *account = data;
+	if (g_slist_index(gaim_accounts, account) < 0)
 		return FALSE;
-	serv_login(u);
+	serv_login(account);
 	tim = 0;
 	return FALSE;
 }
@@ -30,15 +30,15 @@
 static void reconnect(struct gaim_connection *gc, void *m) {
 	if (!gc->wants_to_die) {
 		int del;
-		del = (int)g_hash_table_lookup(hash, gc->user);
+		del = (int)g_hash_table_lookup(hash, gc->account);
 		if (!del)
 			del = INITIAL;
 		else
 			del = MAX(2 * del, MAXTIME);
-		tim = g_timeout_add(del, do_signon, gc->user);
-		g_hash_table_insert(hash, gc->user, (gpointer)del);
+		tim = g_timeout_add(del, do_signon, gc->account);
+		g_hash_table_insert(hash, gc->account, (gpointer)del);
 	} else {
-		g_hash_table_remove(hash, gc->user);
+		g_hash_table_remove(hash, gc->account);
 	}
 }