diff plugins/filectl.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 5fb47ec9bfe4
children fefad67de2c7
line wrap: on
line diff
--- a/plugins/filectl.c	Fri Jan 31 06:51:49 2003 +0000
+++ b/plugins/filectl.c	Fri Jan 31 13:03:47 2003 +0000
@@ -38,22 +38,22 @@
 		debug_printf("read: %s\n", buffer);
 		command = getarg(buffer, 0, 0);
 		if (!strncasecmp(command, "signon", 6)) {
-			struct aim_user *u = NULL;
-			GSList *userlist = aim_users;
+			struct gaim_account *account = NULL;
+			GSList *accts = gaim_accounts;
 			arg1 = getarg(buffer, 1, 1);
 			if (arg1) {
-				while (userlist) {
-					struct aim_user *current = userlist->data;
-					if (!strcmp(current->username, arg1)) {
-						u = current;
+				while (accts) {
+					struct gaim_account *a = accts->data;
+					if (!strcmp(a->username, arg1)) {
+						account = a;
 						break;
 					}
-					userlist = userlist->next;
+					accts = accts->next;
 				}
 				free(arg1);
 			}
-			if (u) /* username found */
-				serv_login(u);
+			if (account) /* username found */
+				serv_login(account);
 		} else if (!strncasecmp(command, "signoff", 7)) {
 			struct gaim_connection *gc = NULL;
 			GSList *c = connections;