Changes in protocols/msn/sb.c [e7f46c5:08995b0]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/sb.c
re7f46c5 r08995b0 512 512 { 513 513 int num = atoi( cmd[0] ); 514 struct msn_status_code *err = msn_status_by_number( num );514 const struct msn_status_code *err = msn_status_by_number( num ); 515 515 516 516 g_snprintf( buf, sizeof( buf ), "Error reported by switchboard server: %s", err->text ); … … 522 522 return( 0 ); 523 523 } 524 elseif( err->flags & STATUS_FATAL )524 if( err->flags & STATUS_FATAL ) 525 525 { 526 526 signoff( gc ); 527 527 return( 0 ); 528 } 529 if( err->flags & STATUS_SB_IM_SPARE ) 530 { 531 if( sb->who ) 532 { 533 struct msn_message *m; 534 GSList *l; 535 536 /* Apparently some invitation failed. We might want to use this 537 board later, so keep it as a spare. */ 538 g_free( sb->who ); 539 sb->who = NULL; 540 541 /* Also clear the msgq, otherwise someone else might get them. */ 542 for( l = sb->msgq; l; l = l->next ) 543 { 544 m = l->data; 545 g_free( m->who ); 546 g_free( m->text ); 547 g_free( m ); 548 } 549 g_slist_free( sb->msgq ); 550 sb->msgq = NULL; 551 } 528 552 } 529 553 }
Note: See TracChangeset
for help on using the changeset viewer.