Mercurial > pidgin
diff plugins/tcl/tcl_cmds.c @ 10740:94cc67130789
[gaim-migrate @ 12342]
More big changes, yay.
I combined gaim_connection_new and gaim_connection_connect. Earlier
today I realized that it's dumb to have a GaimConnection that isn't
connected.
I'm about to combine gaim_connection_disconnect and
gaim_connection_destroy, as well.
I added a "password" field to GaimConnection.
It holds the password used to login a specific GaimConnection. Now,
when "remember password" is false, account->password is NEVER set.
When the user tries to sign on and Gaim prompts for the password,
it goes directly into the GaimConnection.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 26 Mar 2005 23:25:18 +0000 |
parents | 55af3fa46329 |
children | a5a937a18b9b |
line wrap: on
line diff
--- a/plugins/tcl/tcl_cmds.c Sat Mar 26 21:22:53 2005 +0000 +++ b/plugins/tcl/tcl_cmds.c Sat Mar 26 23:25:18 2005 +0000 @@ -119,10 +119,9 @@ error = Tcl_GetIntFromObj(interp, objv[2], (int *)&account); if (error || !tcl_validate_account(account, interp)) return TCL_ERROR; - if (gaim_account_is_connected(account)) - Tcl_SetIntObj(result, (int)gaim_account_get_connection(account)); - else - Tcl_SetIntObj(result, (int)gaim_account_connect(account)); + if (!gaim_account_is_connected(account)) + gaim_account_connect(account); + Tcl_SetIntObj(result, (int)gaim_account_get_connection(account)); break; case CMD_ACCOUNT_CONNECTION: if (objc != 3) {