| 303 /* Create the account */ |
303 /* Create the account */ |
| 304 account = purple_account_new(name, prpl); |
304 account = purple_account_new(name, prpl); |
| 305 |
305 |
| 306 /* Get the password for the account */ |
306 /* Get the password for the account */ |
| 307 password = getpass("Password: "); |
307 password = getpass("Password: "); |
| 308 purple_account_set_password_async(account, g_strdup(password), g_free, NULL, NULL); |
308 purple_account_set_password(account, g_strdup(password), g_free, NULL, NULL); |
| 309 |
309 |
| 310 /* It's necessary to enable the account first. */ |
310 /* It's necessary to enable the account first. */ |
| 311 purple_account_set_enabled(account, UI_ID, TRUE); |
311 purple_account_set_enabled(account, UI_ID, TRUE); |
| 312 |
312 |
| 313 /* Now, to connect the account(s), create a status and activate it. */ |
313 /* Now, to connect the account(s), create a status and activate it. */ |