Changeset aef4828 for protocols/jabber/iq.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/iq.c
r0da65d5 raef4828 39 39 if( !type ) 40 40 { 41 hide_login_progress_error( ic, "Received IQ packet without type." );42 signoff( ic );41 imc_error( ic, "Received IQ packet without type." ); 42 imc_logout( ic ); 43 43 return XT_ABORT; 44 44 } … … 60 60 61 61 if( entry == NULL ) 62 serv_got_crap( ic, "WARNING: Received IQ-%s packet with unknown/expired ID %s!", type, s );62 imc_log( ic, "WARNING: Received IQ-%s packet with unknown/expired ID %s!", type, s ); 63 63 else if( entry->func ) 64 64 return entry->func( ic, node, entry->node ); … … 69 69 !( s = xt_find_attr( c, "xmlns" ) ) ) 70 70 { 71 serv_got_crap( ic, "WARNING: Received incomplete IQ-%s packet", type );71 imc_log( ic, "WARNING: Received incomplete IQ-%s packet", type ); 72 72 return XT_HANDLED; 73 73 } … … 132 132 !( s = xt_find_attr( c, "xmlns" ) ) ) 133 133 { 134 serv_got_crap( ic, "WARNING: Received incomplete IQ-%s packet", type );134 imc_log( ic, "WARNING: Received incomplete IQ-%s packet", type ); 135 135 return XT_HANDLED; 136 136 } … … 154 154 else 155 155 { 156 serv_got_crap( ic, "WARNING: %s tried to fake a roster push!", s ? s : "(unknown)" );156 imc_log( ic, "WARNING: %s tried to fake a roster push!", s ? s : "(unknown)" ); 157 157 158 158 xt_free_node( reply ); … … 219 219 if( !( query = xt_find_node( node->children, "query" ) ) ) 220 220 { 221 serv_got_crap( ic, "WARNING: Received incomplete IQ packet while authenticating" );222 signoff( ic );221 imc_log( ic, "WARNING: Received incomplete IQ packet while authenticating" ); 222 imc_logout( ic ); 223 223 return XT_HANDLED; 224 224 } … … 258 258 xt_free_node( reply ); 259 259 260 hide_login_progress( ic, "Can't find suitable authentication method" );261 signoff( ic );260 imc_error( ic, "Can't find suitable authentication method" ); 261 imc_logout( ic ); 262 262 return XT_ABORT; 263 263 } … … 277 277 if( !( type = xt_find_attr( node, "type" ) ) ) 278 278 { 279 serv_got_crap( ic, "WARNING: Received incomplete IQ packet while authenticating" );280 signoff( ic );279 imc_log( ic, "WARNING: Received incomplete IQ packet while authenticating" ); 280 imc_logout( ic ); 281 281 return XT_HANDLED; 282 282 } … … 284 284 if( strcmp( type, "error" ) == 0 ) 285 285 { 286 hide_login_progress( ic, "Authentication failure" );287 signoff( ic );286 imc_error( ic, "Authentication failure" ); 287 imc_logout( ic ); 288 288 return XT_ABORT; 289 289 } … … 311 311 if( c && c->text_len && ( s = strchr( c->text, '/' ) ) && 312 312 strcmp( s + 1, set_getstr( &ic->acc->set, "resource" ) ) != 0 ) 313 serv_got_crap( ic, "Server changed session resource string to `%s'", s + 1 );313 imc_log( ic, "Server changed session resource string to `%s'", s + 1 ); 314 314 315 315 jd->flags &= ~JFLAG_WAIT_BIND; … … 334 334 int st; 335 335 336 set_login_progress( ic, 1, "Authenticated, requesting buddy list" );336 imc_log( ic, "Authenticated, requesting buddy list" ); 337 337 338 338 node = xt_new_node( "query", NULL, NULL ); … … 353 353 if( !( query = xt_find_node( node->children, "query" ) ) ) 354 354 { 355 serv_got_crap( ic, "WARNING: Received NULL roster packet" );355 imc_log( ic, "WARNING: Received NULL roster packet" ); 356 356 return XT_HANDLED; 357 357 } … … 397 397 398 398 if( initial ) 399 account_online( ic );399 imc_connected( ic ); 400 400 401 401 return XT_HANDLED; … … 428 428 { 429 429 s = xt_find_attr( orig, "to" ); /* If this returns NULL something's wrong.. */ 430 serv_got_crap( ic, "Could not retrieve vCard of %s", s ? s : "(NULL)" );430 imc_log( ic, "Could not retrieve vCard of %s", s ? s : "(NULL)" ); 431 431 return XT_HANDLED; 432 432 } … … 536 536 /* *sigh* */ 537 537 538 serv_got_crap( ic, reply->str );538 imc_log( ic, reply->str ); 539 539 g_string_free( reply, TRUE ); 540 540
Note: See TracChangeset
for help on using the changeset viewer.