Changeset 84b045d for protocols/jabber/io.c
- Timestamp:
- 2007-04-16T01:03:08Z (17 years ago)
- Branches:
- master
- Children:
- 6bbb939
- Parents:
- c2fb3809
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/io.c
rc2fb3809 r84b045d 117 117 jd->fd = -1; 118 118 119 imc _error( ic, "Short write() to server" );119 imcb_error( ic, "Short write() to server" ); 120 120 imc_logout( ic, TRUE ); 121 121 return FALSE; … … 160 160 if( xt_feed( jd->xt, buf, st ) < 0 ) 161 161 { 162 imc _error( ic, "XML stream error" );162 imcb_error( ic, "XML stream error" ); 163 163 imc_logout( ic, TRUE ); 164 164 return FALSE; … … 203 203 if( set_getbool( &ic->acc->set, "tls" ) ) 204 204 { 205 imc _error( ic, "TLS is turned on for this "205 imcb_error( ic, "TLS is turned on for this " 206 206 "account, but is not supported by this server" ); 207 207 imc_logout( ic, FALSE ); … … 216 216 else 217 217 { 218 imc _error( ic, "XML stream error" );218 imcb_error( ic, "XML stream error" ); 219 219 imc_logout( ic, TRUE ); 220 220 return FALSE; … … 227 227 jd->fd = -1; 228 228 229 imc _error( ic, "Error while reading from server" );229 imcb_error( ic, "Error while reading from server" ); 230 230 imc_logout( ic, TRUE ); 231 231 return FALSE; … … 242 242 if( source == -1 ) 243 243 { 244 imc _error( ic, "Could not connect to server" );244 imcb_error( ic, "Could not connect to server" ); 245 245 imc_logout( ic, TRUE ); 246 246 return FALSE; 247 247 } 248 248 249 imc _log( ic, "Connected to server, logging in" );249 imcb_log( ic, "Connected to server, logging in" ); 250 250 251 251 return jabber_start_stream( ic ); … … 263 263 jd->ssl = NULL; 264 264 265 imc _error( ic, "Could not connect to server" );265 imcb_error( ic, "Could not connect to server" ); 266 266 imc_logout( ic, TRUE ); 267 267 return FALSE; 268 268 } 269 269 270 imc _log( ic, "Connected to server, logging in" );270 imcb_log( ic, "Connected to server, logging in" ); 271 271 272 272 return jabber_start_stream( ic ); … … 297 297 if( c && ( !trytls && !set_getbool( &ic->acc->set, "tls" ) ) ) 298 298 { 299 imc _error( ic, "Server requires TLS connections, but TLS is turned off for this account" );299 imcb_error( ic, "Server requires TLS connections, but TLS is turned off for this account" ); 300 300 imc_logout( ic, FALSE ); 301 301 … … 327 327 if( !trytls && set_getbool( &ic->acc->set, "tls" ) ) 328 328 { 329 imc _error( ic, "TLS is turned on for this account, but is not supported by this server" );329 imcb_error( ic, "TLS is turned on for this account, but is not supported by this server" ); 330 330 imc_logout( ic, FALSE ); 331 331 … … 417 417 jd->w_inpa = jd->r_inpa = 0; 418 418 419 imc _log( ic, "Converting stream to TLS" );419 imcb_log( ic, "Converting stream to TLS" ); 420 420 421 421 jd->ssl = ssl_starttls( jd->fd, jabber_connected_ssl, ic ); … … 453 453 if( type == NULL ) 454 454 { 455 imc _error( ic, "Unknown stream error reported by server" );455 imcb_error( ic, "Unknown stream error reported by server" ); 456 456 imc_logout( ic, allow_reconnect ); 457 457 return XT_ABORT; … … 463 463 if( strcmp( type, "conflict" ) == 0 ) 464 464 { 465 imc _error( ic, "Account and resource used from a different location" );465 imcb_error( ic, "Account and resource used from a different location" ); 466 466 allow_reconnect = FALSE; 467 467 } 468 468 else 469 469 { 470 imc _error( ic, "Stream error: %s%s%s", type, text ? ": " : "", text ? text : "" );470 imcb_error( ic, "Stream error: %s%s%s", type, text ? ": " : "", text ? text : "" ); 471 471 } 472 472
Note: See TracChangeset
for help on using the changeset viewer.