diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-10-21 21:49:57 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-10-21 21:49:57 +0200 |
commit | 2a29eac1dd6c9d5d2ed5083efc1c185cfd750fd7 (patch) | |
tree | c660c53aaae78c0fbb31e34875f78a70bfc31405 | |
parent | a5ac9f94c2dad85cb0f504172635982368db4d65 (diff) |
"Restructured" msn_login() a little bit.
-rw-r--r-- | protocols/msn/msn.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c index f7e57707..f8686835 100644 --- a/protocols/msn/msn.c +++ b/protocols/msn/msn.c @@ -41,8 +41,6 @@ static void msn_login( account_t *acc ) struct gaim_connection *gc = new_gaim_conn( acc ); struct msn_data *md = g_new0( struct msn_data, 1 ); - set_login_progress( gc, 1, "Connecting" ); - gc->proto_data = md; md->fd = -1; @@ -53,19 +51,20 @@ static void msn_login( account_t *acc ) return; } + set_login_progress( gc, 1, "Connecting" ); + md->fd = proxy_connect( "messenger.hotmail.com", 1863, msn_ns_connected, gc ); if( md->fd < 0 ) { hide_login_progress( gc, "Could not connect to server" ); signoff( gc ); + return; } - else - { - md->gc = gc; - md->away_state = msn_away_state_list; - - msn_connections = g_slist_append( msn_connections, gc ); - } + + md->gc = gc; + md->away_state = msn_away_state_list; + + msn_connections = g_slist_append( msn_connections, gc ); } static void msn_close( struct gaim_connection *gc ) |