Ignore:
Timestamp:
2007-04-06T05:20:31Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
552e641
Parents:
0da65d5
Message:

More cleanups, mainly in the callbacks. Replaced things like
do_error_dialog() and (set|hide)_login_progress(_error)?() with things
that hopefully make more sense.

Although it's still not really great...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    r0da65d5 raef4828  
    3939static void msn_login( account_t *acc )
    4040{
    41         struct im_connection *ic = new_gaim_conn( acc );
     41        struct im_connection *ic = imc_new( acc );
    4242        struct msn_data *md = g_new0( struct msn_data, 1 );
    4343       
     
    4747        if( strchr( acc->user, '@' ) == NULL )
    4848        {
    49                 hide_login_progress( ic, "Invalid account name" );
    50                 signoff( ic );
     49                imc_error( ic, "Invalid account name" );
     50                imc_logout( ic );
    5151                return;
    5252        }
    5353       
    54         set_login_progress( ic, 1, "Connecting" );
     54        imc_log( ic, "Connecting" );
    5555       
    5656        md->fd = proxy_connect( "messenger.hotmail.com", 1863, msn_ns_connected, ic );
    5757        if( md->fd < 0 )
    5858        {
    59                 hide_login_progress( ic, "Could not connect to server" );
    60                 signoff( ic );
     59                imc_error( ic, "Could not connect to server" );
     60                imc_logout( ic );
    6161                return;
    6262        }
     
    9696                                m = l->data;
    9797                       
    98                                 serv_got_crap( ic, "Warning: Closing down MSN connection with unsent message to %s, you'll have to resend it.", m->who );
     98                                imc_log( ic, "Warning: Closing down MSN connection with unsent message to %s, you'll have to resend it.", m->who );
    9999                                g_free( m->who );
    100100                                g_free( m->text );
     
    228228{
    229229        /* Just make an URL and let the user fetch the info */
    230         serv_got_crap( ic, "%s\n%s: %s%s", _("User Info"), _("For now, fetch yourself"), PROFILE_URL, who );
     230        imc_log( ic, "%s\n%s: %s%s", _("User Info"), _("For now, fetch yourself"), PROFILE_URL, who );
    231231}
    232232
     
    373373        if( strlen( value ) > 129 )
    374374        {
    375                 serv_got_crap( ic, "Maximum name length exceeded" );
     375                imc_log( ic, "Maximum name length exceeded" );
    376376                return NULL;
    377377        }
Note: See TracChangeset for help on using the changeset viewer.