Changeset 3429b58 for protocols/msn
- Timestamp:
- 2010-05-13T22:05:13Z (15 years ago)
- Branches:
- master
- Children:
- 704dd38
- Parents:
- 58f5ef7 (diff), 3742fb6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/sb.c
r58f5ef7 r3429b58 340 340 struct msn_data *md = ic->proto_data; 341 341 342 if( msn_handler( sb->handler ) == -1 ) 342 if( msn_handler( sb->handler ) != -1 ) 343 return TRUE; 344 345 if( sb->msgq != NULL ) 343 346 { 344 347 time_t now = time( NULL ); 348 char buf[1024]; 345 349 346 350 if( now - md->first_sb_failure > 600 ) … … 359 363 "There might be problems delivering your messages." ); 360 364 361 if( sb->msgq != NULL ) 362 { 363 char buf[1024]; 364 365 if( md->msgq == NULL ) 366 { 367 md->msgq = sb->msgq; 368 } 369 else 370 { 371 GSList *l; 372 373 for( l = md->msgq; l->next; l = l->next ); 374 l->next = sb->msgq; 375 } 376 sb->msgq = NULL; 377 378 debug( "Moved queued messages back to the main queue, creating a new switchboard to retry." ); 379 g_snprintf( buf, sizeof( buf ), "XFR %d SB\r\n", ++md->trId ); 380 if( !msn_write( ic, buf, strlen( buf ) ) ) 381 return FALSE; 382 } 383 384 msn_sb_destroy( sb ); 385 386 return FALSE; 387 } 388 else 389 { 390 return TRUE; 391 } 365 if( md->msgq == NULL ) 366 { 367 md->msgq = sb->msgq; 368 } 369 else 370 { 371 GSList *l; 372 373 for( l = md->msgq; l->next; l = l->next ); 374 l->next = sb->msgq; 375 } 376 sb->msgq = NULL; 377 378 debug( "Moved queued messages back to the main queue, " 379 "creating a new switchboard to retry." ); 380 g_snprintf( buf, sizeof( buf ), "XFR %d SB\r\n", ++md->trId ); 381 if( !msn_write( ic, buf, strlen( buf ) ) ) 382 return FALSE; 383 } 384 385 msn_sb_destroy( sb ); 386 return FALSE; 392 387 } 393 388
Note: See TracChangeset
for help on using the changeset viewer.