Mercurial > pidgin
comparison src/core.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 | 0c68d402f59f |
children | 5a2bc74c283a |
comparison
equal
deleted
inserted
replaced
4490:70b892694e0b | 4491:3196d9044a45 |
---|---|
211 } | 211 } |
212 | 212 |
213 static void user_handler(struct UI *ui, guchar subtype, guchar *data) | 213 static void user_handler(struct UI *ui, guchar subtype, guchar *data) |
214 { | 214 { |
215 guint id; | 215 guint id; |
216 struct aim_user *u; | 216 struct gaim_account *account; |
217 | 217 |
218 switch (subtype) { | 218 switch (subtype) { |
219 /* | 219 /* |
220 case CUI_USER_LIST: | 220 case CUI_USER_LIST: |
221 break; | 221 break; |
228 */ | 228 */ |
229 case CUI_USER_SIGNON: | 229 case CUI_USER_SIGNON: |
230 if (!data) | 230 if (!data) |
231 return; | 231 return; |
232 memcpy(&id, data, sizeof(id)); | 232 memcpy(&id, data, sizeof(id)); |
233 u = g_slist_nth_data(aim_users, id); | 233 account = g_slist_nth_data(gaim_accounts, id); |
234 if (u) | 234 if (account) |
235 serv_login(u); | 235 serv_login(account); |
236 /* don't need to do anything here because the UI will get updates from other handlers */ | 236 /* don't need to do anything here because the UI will get updates from other handlers */ |
237 break; | 237 break; |
238 default: | 238 default: |
239 debug_printf("unhandled user subtype %d\n", subtype); | 239 debug_printf("unhandled user subtype %d\n", subtype); |
240 break; | 240 break; |