Changeset bc090f0 for protocols/msn/sb.c


Ignore:
Timestamp:
2010-03-20T22:42:59Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ee6cc94
Parents:
ffb6dea
Message:

Error reporting and added a msgq_send function. Need to put some more
intelligence into it later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/sb.c

    rffb6dea rbc090f0  
    607607                const struct msn_status_code *err = msn_status_by_number( num );
    608608               
     609                /* If the person is offline, send an offline message instead,
     610                   and don't report an error. */
    609611                if( num == 217 )
    610                 {
    611                         GSList *l;
    612                        
    613                         for( l = sb->msgq; l; l = l->next )
    614                         {
    615                                 struct msn_message *m = l->data;
    616                                 msn_soap_oim_send( ic, m->who, m->text );
    617                         }
    618                 }
    619                
    620                 imcb_error( ic, "Error reported by switchboard server: %s", err->text );
     612                        msn_soap_oim_send_queue( ic, &sb->msgq );
     613                else
     614                        imcb_error( ic, "Error reported by switchboard server: %s", err->text );
    621615               
    622616                if( err->flags & STATUS_SB_FATAL )
Note: See TracChangeset for help on using the changeset viewer.