diff options
Diffstat (limited to 'protocols/twitter/twitter.c')
| -rw-r--r-- | protocols/twitter/twitter.c | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index 726c7cb1..ead03c56 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -81,7 +81,10 @@ static void twitter_login( account_t *acc )  	twitter_connections = g_slist_append( twitter_connections, ic );  	td->user = acc->user; -	td->pass = acc->pass; +	if( strstr( acc->pass, "oauth_token=" ) == NULL ) +		td->pass = g_strdup( acc->pass ); +	else +		td->oauth = g_strdup( acc->pass );  	td->home_timeline_id = 0;  	ic->proto_data = td; @@ -118,6 +121,8 @@ static void twitter_logout( struct im_connection *ic )  	if( td )  	{ +		g_free( td->pass ); +		g_free( td->oauth );  		g_free( td );  	} | 
