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/jabber/jabber.c

    r0da65d5 raef4828  
    5959static void jabber_login( account_t *acc )
    6060{
    61         struct im_connection *ic = new_gaim_conn( acc );
     61        struct im_connection *ic = imc_new( acc );
    6262        struct jabber_data *jd = g_new0( struct jabber_data, 1 );
    6363        struct ns_srv_reply *srv = NULL;
     
    7272        if( jd->server == NULL )
    7373        {
    74                 hide_login_progress( ic, "Incomplete account name (format it like <username@jabberserver.name>)" );
    75                 signoff( ic );
     74                imc_error( ic, "Incomplete account name (format it like <username@jabberserver.name>)" );
     75                imc_logout( ic );
    7676                return;
    7777        }
     
    159159                connect_to = jd->server;
    160160       
    161         set_login_progress( ic, 0, "Connecting" );
     161        imc_log( ic, "Connecting" );
    162162       
    163163        if( set_getint( &acc->set, "port" ) < JABBER_PORT_MIN ||
    164164            set_getint( &acc->set, "port" ) > JABBER_PORT_MAX )
    165165        {
    166                 serv_got_crap( ic, "Incorrect port number, must be in the %d-%d range",
     166                imc_log( ic, "Incorrect port number, must be in the %d-%d range",
    167167                               JABBER_PORT_MIN, JABBER_PORT_MAX );
    168                 signoff( ic );
     168                imc_logout( ic );
    169169                return;
    170170        }
     
    186186        if( jd->fd == -1 )
    187187        {
    188                 hide_login_progress( ic, "Could not connect to server" );
    189                 signoff( ic );
     188                imc_error( ic, "Could not connect to server" );
     189                imc_logout( ic );
    190190        }
    191191}
     
    285285        while( bud )
    286286        {
    287                 serv_got_crap( ic, "Buddy %s (%d) information:\nAway state: %s\nAway message: %s",
     287                imc_log( ic, "Buddy %s (%d) information:\nAway state: %s\nAway message: %s",
    288288                                   bud->full_jid, bud->priority,
    289289                                   bud->away_state ? bud->away_state->full_name : "(none)",
Note: See TracChangeset for help on using the changeset viewer.