Changeset aef4828 for protocols/jabber/io.c
- Timestamp:
- 2007-04-06T05:20:31Z (17 years ago)
- Branches:
- master
- Children:
- 552e641
- Parents:
- 0da65d5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/io.c
r0da65d5 raef4828 117 117 jd->fd = -1; 118 118 119 hide_login_progress_error( ic, "Short write() to server" );120 signoff( ic );119 imc_error( ic, "Short write() to server" ); 120 imc_logout( ic ); 121 121 return FALSE; 122 122 } … … 160 160 if( xt_feed( jd->xt, buf, st ) < 0 ) 161 161 { 162 hide_login_progress_error( ic, "XML stream error" );163 signoff( ic );162 imc_error( ic, "XML stream error" ); 163 imc_logout( ic ); 164 164 return FALSE; 165 165 } … … 203 203 if( set_getbool( &ic->acc->set, "tls" ) ) 204 204 { 205 hide_login_progress( ic, "TLS is turned on for this "205 imc_error( ic, "TLS is turned on for this " 206 206 "account, but is not supported by this server" ); 207 signoff( ic );207 imc_logout( ic ); 208 208 return FALSE; 209 209 } … … 216 216 else 217 217 { 218 hide_login_progress( ic, "XML stream error" );219 signoff( ic );218 imc_error( ic, "XML stream error" ); 219 imc_logout( ic ); 220 220 return FALSE; 221 221 } … … 227 227 jd->fd = -1; 228 228 229 hide_login_progress_error( ic, "Error while reading from server" );230 signoff( ic );229 imc_error( ic, "Error while reading from server" ); 230 imc_logout( ic ); 231 231 return FALSE; 232 232 } … … 242 242 if( source == -1 ) 243 243 { 244 hide_login_progress( ic, "Could not connect to server" );245 signoff( ic );244 imc_error( ic, "Could not connect to server" ); 245 imc_logout( ic ); 246 246 return FALSE; 247 247 } 248 248 249 set_login_progress( ic, 1, "Connected to server, logging in" );249 imc_log( ic, "Connected to server, logging in" ); 250 250 251 251 return jabber_start_stream( ic ); … … 263 263 jd->ssl = NULL; 264 264 265 hide_login_progress( ic, "Could not connect to server" );266 signoff( ic );265 imc_error( ic, "Could not connect to server" ); 266 imc_logout( ic ); 267 267 return FALSE; 268 268 } 269 269 270 set_login_progress( ic, 1, "Connected to server, logging in" );270 imc_log( ic, "Connected to server, logging in" ); 271 271 272 272 return jabber_start_stream( ic ); … … 275 275 static xt_status jabber_end_of_stream( struct xt_node *node, gpointer data ) 276 276 { 277 signoff( data );277 imc_logout( data ); 278 278 return XT_ABORT; 279 279 } … … 297 297 if( c && ( !trytls && !set_getbool( &ic->acc->set, "tls" ) ) ) 298 298 { 299 hide_login_progress( ic, "Server requires TLS connections, but TLS is turned off for this account" );300 signoff( ic );299 imc_error( ic, "Server requires TLS connections, but TLS is turned off for this account" ); 300 imc_logout( ic ); 301 301 302 302 return XT_ABORT; … … 327 327 if( !trytls && set_getbool( &ic->acc->set, "tls" ) ) 328 328 { 329 hide_login_progress( ic, "TLS is turned on for this account, but is not supported by this server" );330 signoff( ic );329 imc_error( ic, "TLS is turned on for this account, but is not supported by this server" ); 330 imc_logout( ic ); 331 331 332 332 return XT_ABORT; … … 417 417 jd->w_inpa = jd->r_inpa = 0; 418 418 419 set_login_progress( ic, 1, "Converting stream to TLS" );419 imc_log( ic, "Converting stream to TLS" ); 420 420 421 421 jd->ssl = ssl_starttls( jd->fd, jabber_connected_ssl, ic ); … … 452 452 if( type == NULL ) 453 453 { 454 hide_login_progress_error( ic, "Unknown stream error reported by server" );455 signoff( ic );454 imc_error( ic, "Unknown stream error reported by server" ); 455 imc_logout( ic ); 456 456 return XT_ABORT; 457 457 } … … 462 462 if( strcmp( type, "conflict" ) == 0 ) 463 463 { 464 hide_login_progress( ic, "Account and resource used from a different location" );464 imc_error( ic, "Account and resource used from a different location" ); 465 465 ic->wants_to_die = TRUE; 466 466 } … … 468 468 { 469 469 s = g_strdup_printf( "Stream error: %s%s%s", type, text ? ": " : "", text ? text : "" ); 470 hide_login_progress_error( ic, s );470 imc_error( ic, s ); 471 471 g_free( s ); 472 472 } 473 473 474 signoff( ic );474 imc_logout( ic ); 475 475 476 476 return XT_ABORT;
Note: See TracChangeset
for help on using the changeset viewer.