diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-26 23:50:25 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-26 23:50:25 +0100 | 
| commit | 288b215ca64d09ea6a49cf9ff1fcc7682b7607ec (patch) | |
| tree | 071844fd531f67983a3707bcc403cdf1cb4e21ce /protocols/twitter/twitter.c | |
| parent | 78a2f1e4ac9aeb2c041059eb7a9578d34bd60d50 (diff) | |
Save the OAuth token in the acct structs so it doesn't have to be rerequested
every time.
Diffstat (limited to 'protocols/twitter/twitter.c')
| -rw-r--r-- | protocols/twitter/twitter.c | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index eb05d9d5..54bee2f1 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -110,6 +110,11 @@ static void twitter_oauth_callback( struct oauth_info *info )  		td->oauth = g_strdup( info->access_token ); +		/* IM mods didn't do this so far and it's ugly but I should +		   be able to get away with it... */ +		g_free( ic->acc->pass ); +		ic->acc->pass = g_strdup( info->access_token ); +		  		twitter_main_loop_start( ic );  	}  } | 
