Ignore:
Timestamp:
2010-04-07T00:27:51Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
1014cab
Parents:
0519b0a
Message:

A little more cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r0519b0a rd569019  
    3636        // Check if we are still logged in...
    3737        // 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_IN
    39                         && !g_slist_find( twitter_connections, ic ))
     38        if (!g_slist_find( twitter_connections, ic ) ||
     39            (ic->flags & OPT_LOGGED_IN) != OPT_LOGGED_IN)
    4040                return 0;
    4141
     
    6969        struct twitter_data *td = g_new0( struct twitter_data, 1 );
    7070
     71        twitter_connections = g_slist_append( twitter_connections, ic );
     72
    7173        td->user = acc->user;
    7274        td->pass = acc->pass;
     
    7577        ic->proto_data = td;
    7678
    77         imcb_log( ic, "Connecting to twitter" );
     79        imcb_log( ic, "Connecting to Twitter" );
    7880        imcb_connected(ic);
    7981
     
    8486        // Save the return value, so we can remove the timeout on logout.
    8587        td->main_loop_id = b_timeout_add(60000, twitter_main_loop, ic);
    86 
    87         twitter_connections = g_slist_append( twitter_connections, ic );
    8888}
    8989
Note: See TracChangeset for help on using the changeset viewer.