Changeset d569019 for protocols/twitter/twitter.c
- Timestamp:
- 2010-04-07T00:27:51Z (14 years ago)
- Branches:
- master
- Children:
- 1014cab
- Parents:
- 0519b0a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter.c
r0519b0a rd569019 36 36 // Check if we are still logged in... 37 37 // We are logged in if the flag says so and the connection is still in the connections list. 38 if ( (ic->flags & OPT_LOGGED_IN) != OPT_LOGGED_IN39 && !g_slist_find( twitter_connections, ic ))38 if (!g_slist_find( twitter_connections, ic ) || 39 (ic->flags & OPT_LOGGED_IN) != OPT_LOGGED_IN) 40 40 return 0; 41 41 … … 69 69 struct twitter_data *td = g_new0( struct twitter_data, 1 ); 70 70 71 twitter_connections = g_slist_append( twitter_connections, ic ); 72 71 73 td->user = acc->user; 72 74 td->pass = acc->pass; … … 75 77 ic->proto_data = td; 76 78 77 imcb_log( ic, "Connecting to twitter" );79 imcb_log( ic, "Connecting to Twitter" ); 78 80 imcb_connected(ic); 79 81 … … 84 86 // Save the return value, so we can remove the timeout on logout. 85 87 td->main_loop_id = b_timeout_add(60000, twitter_main_loop, ic); 86 87 twitter_connections = g_slist_append( twitter_connections, ic );88 88 } 89 89
Note: See TracChangeset
for help on using the changeset viewer.