Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
4490:70b892694e0b | 4491:3196d9044a45 |
---|---|
36 if (buffer[strlen(buffer) - 1] == '\n') | 36 if (buffer[strlen(buffer) - 1] == '\n') |
37 buffer[strlen(buffer) - 1] = 0; | 37 buffer[strlen(buffer) - 1] = 0; |
38 debug_printf("read: %s\n", buffer); | 38 debug_printf("read: %s\n", buffer); |
39 command = getarg(buffer, 0, 0); | 39 command = getarg(buffer, 0, 0); |
40 if (!strncasecmp(command, "signon", 6)) { | 40 if (!strncasecmp(command, "signon", 6)) { |
41 struct aim_user *u = NULL; | 41 struct gaim_account *account = NULL; |
42 GSList *userlist = aim_users; | 42 GSList *accts = gaim_accounts; |
43 arg1 = getarg(buffer, 1, 1); | 43 arg1 = getarg(buffer, 1, 1); |
44 if (arg1) { | 44 if (arg1) { |
45 while (userlist) { | 45 while (accts) { |
46 struct aim_user *current = userlist->data; | 46 struct gaim_account *a = accts->data; |
47 if (!strcmp(current->username, arg1)) { | 47 if (!strcmp(a->username, arg1)) { |
48 u = current; | 48 account = a; |
49 break; | 49 break; |
50 } | 50 } |
51 userlist = userlist->next; | 51 accts = accts->next; |
52 } | 52 } |
53 free(arg1); | 53 free(arg1); |
54 } | 54 } |
55 if (u) /* username found */ | 55 if (account) /* username found */ |
56 serv_login(u); | 56 serv_login(account); |
57 } else if (!strncasecmp(command, "signoff", 7)) { | 57 } else if (!strncasecmp(command, "signoff", 7)) { |
58 struct gaim_connection *gc = NULL; | 58 struct gaim_connection *gc = NULL; |
59 GSList *c = connections; | 59 GSList *c = connections; |
60 arg1 = getarg(buffer, 1, 1); | 60 arg1 = getarg(buffer, 1, 1); |
61 while (arg1 && c) { | 61 while (arg1 && c) { |