| 293 /* Create the account */ |
293 /* Create the account */ |
| 294 account = purple_account_new(name, prpl); |
294 account = purple_account_new(name, prpl); |
| 295 |
295 |
| 296 /* Get the password for the account */ |
296 /* Get the password for the account */ |
| 297 password = getpass("Password: "); |
297 password = getpass("Password: "); |
| 298 purple_account_set_password(account, password); |
298 purple_account_set_password_async(account, g_strdup(password), g_free, NULL, NULL); |
| 299 |
299 |
| 300 /* It's necessary to enable the account first. */ |
300 /* It's necessary to enable the account first. */ |
| 301 purple_account_set_enabled(account, UI_ID, TRUE); |
301 purple_account_set_enabled(account, UI_ID, TRUE); |
| 302 |
302 |
| 303 /* Now, to connect the account(s), create a status and activate it. */ |
303 /* Now, to connect the account(s), create a status and activate it. */ |