Changeset 2a29eac for protocols


Ignore:
Timestamp:
2006-10-21T19:49:57Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
91bd910
Parents:
a5ac9f9
Message:

"Restructured" msn_login() a little bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    ra5ac9f9 r2a29eac  
    4242        struct msn_data *md = g_new0( struct msn_data, 1 );
    4343       
    44         set_login_progress( gc, 1, "Connecting" );
    45        
    4644        gc->proto_data = md;
    4745        md->fd = -1;
     
    5452        }
    5553       
     54        set_login_progress( gc, 1, "Connecting" );
     55       
    5656        md->fd = proxy_connect( "messenger.hotmail.com", 1863, msn_ns_connected, gc );
    5757        if( md->fd < 0 )
     
    5959                hide_login_progress( gc, "Could not connect to server" );
    6060                signoff( gc );
    61         }
    62         else
    63         {
    64                 md->gc = gc;
    65                 md->away_state = msn_away_state_list;
    66                
    67                 msn_connections = g_slist_append( msn_connections, gc );
    68         }
     61                return;
     62        }
     63       
     64        md->gc = gc;
     65        md->away_state = msn_away_state_list;
     66       
     67        msn_connections = g_slist_append( msn_connections, gc );
    6968}
    7069
Note: See TracChangeset for help on using the changeset viewer.