comparison plugins/gaim-remote/remote.c @ 6036:547ba881bc7e

[gaim-migrate @ 6486] Fix the --login=[NAME] command line argument. Fix the password prompt when signing on an account with no password set. I made some similar changes that probably fix problems with the filectl plugin, using gaim-remote to sign on an account, and signing on an account via perl script. (The change is calling gaim_account_connect() instead of serv_login().) Fix a silly compiler warning. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 05 Jul 2003 22:24:57 +0000
parents fccc33d4b8fa
children 5239a3b4ab33
comparison
equal deleted inserted replaced
6035:8c44020a958e 6036:547ba881bc7e
385 if (!data) 385 if (!data)
386 return; 386 return;
387 memcpy(&id, data, sizeof(id)); 387 memcpy(&id, data, sizeof(id));
388 account = g_list_nth_data(gaim_accounts_get_all(), id); 388 account = g_list_nth_data(gaim_accounts_get_all(), id);
389 if (account) 389 if (account)
390 serv_login(account); 390 gaim_account_connect(account);
391 /* don't need to do anything here because the UI will get updates from other handlers */ 391 /* don't need to do anything here because the UI will get updates from other handlers */
392 break; 392 break;
393 default: 393 default:
394 gaim_debug(GAIM_DEBUG_WARNING, "cui", 394 gaim_debug(GAIM_DEBUG_WARNING, "cui",
395 "Unhandled user subtype %d\n", subtype); 395 "Unhandled user subtype %d\n", subtype);