aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/sb.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-04-05 22:20:31 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2007-04-05 22:20:31 -0700
commitaef4828a1dc51de10a43bb7dd5d023de9971295b (patch)
treecbb675b41369f1ada1579fba4060726573cf9cb5 /protocols/msn/sb.c
parent0da65d5fb37691ed4d31f7ab4058732f1440db6b (diff)
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...
Diffstat (limited to 'protocols/msn/sb.c')
-rw-r--r--protocols/msn/sb.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/msn/sb.c b/protocols/msn/sb.c
index f9c755a5..f7007d32 100644
--- a/protocols/msn/sb.c
+++ b/protocols/msn/sb.c
@@ -221,7 +221,7 @@ void msn_sb_destroy( struct msn_switchboard *sb )
}
g_slist_free( sb->msgq );
- serv_got_crap( ic, "Warning: Closing down MSN switchboard connection with "
+ imc_log( ic, "Warning: Closing down MSN switchboard connection with "
"unsent message to %s, you'll have to resend it.",
sb->who ? sb->who : "(unknown)" );
}
@@ -320,8 +320,8 @@ static int msn_sb_command( gpointer data, char **cmd, int num_parts )
if( strcmp( cmd[0], "XFR" ) == 0 )
{
- 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!" );
- signoff( ic );
+ imc_error( ic, "Received an XFR from a switchboard server, unable to comply! This is likely to be a bug, please report it!" );
+ imc_logout( ic );
return( 0 );
}
else if( strcmp( cmd[0], "USR" ) == 0 )
@@ -527,8 +527,7 @@ static int msn_sb_command( gpointer data, char **cmd, int num_parts )
int num = atoi( cmd[0] );
const struct msn_status_code *err = msn_status_by_number( num );
- g_snprintf( buf, sizeof( buf ), "Error reported by switchboard server: %s", err->text );
- do_error_dialog( ic, buf, "MSN" );
+ imc_error( ic, "Error reported by switchboard server: %s", err->text );
if( err->flags & STATUS_SB_FATAL )
{
@@ -537,7 +536,7 @@ static int msn_sb_command( gpointer data, char **cmd, int num_parts )
}
else if( err->flags & STATUS_FATAL )
{
- signoff( ic );
+ imc_logout( ic );
return 0;
}
else if( err->flags & STATUS_SB_IM_SPARE )