Changeset aef4828 for protocols/msn/sb.c


Ignore:
Timestamp:
2007-04-06T05:20:31Z (15 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/sb.c

    r0da65d5 raef4828  
    222222                g_slist_free( sb->msgq );
    223223               
    224                 serv_got_crap( ic, "Warning: Closing down MSN switchboard connection with "
     224                imc_log( ic, "Warning: Closing down MSN switchboard connection with "
    225225                                   "unsent message to %s, you'll have to resend it.",
    226226                                   sb->who ? sb->who : "(unknown)" );
     
    321321        if( strcmp( cmd[0], "XFR" ) == 0 )
    322322        {
    323                 hide_login_progress_error( ic, "Received an XFR from a switchboard server, unable to comply! This is likely to be a bug, please report it!" );
    324                 signoff( ic );
     323                imc_error( ic, "Received an XFR from a switchboard server, unable to comply! This is likely to be a bug, please report it!" );
     324                imc_logout( ic );
    325325                return( 0 );
    326326        }
     
    528528                const struct msn_status_code *err = msn_status_by_number( num );
    529529               
    530                 g_snprintf( buf, sizeof( buf ), "Error reported by switchboard server: %s", err->text );
    531                 do_error_dialog( ic, buf, "MSN" );
     530                imc_error( ic, "Error reported by switchboard server: %s", err->text );
    532531               
    533532                if( err->flags & STATUS_SB_FATAL )
     
    538537                else if( err->flags & STATUS_FATAL )
    539538                {
    540                         signoff( ic );
     539                        imc_logout( ic );
    541540                        return 0;
    542541                }
Note: See TracChangeset for help on using the changeset viewer.