Ignore:
Timestamp:
2008-01-06T12:32:27Z (16 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
43462708
Parents:
1febf5c
Message:

Changed warning message about unsent MSN messages. It should show the actual
message(s) now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn_util.c

    r1febf5c r46dca11  
    339339        return ret;
    340340}
     341
     342void msn_msgq_purge( struct im_connection *ic, GSList **list )
     343{
     344        struct msn_message *m;
     345        GString *ret;
     346        GSList *l;
     347       
     348        l = *list;
     349        if( l == NULL )
     350                return;
     351       
     352        m = l->data;
     353        ret = g_string_sized_new( 1024 );
     354        g_string_printf( ret, "WARNING: Cleaning up MSN (switchboard) connection with unsent "
     355                              "messages to %s:", m->who ? m->who : "unknown recipient" );
     356       
     357        while( l )
     358        {
     359                m = l->data;
     360               
     361                g_string_append_printf( ret, "\n%s", m->text );
     362               
     363                g_free( m->who );
     364                g_free( m->text );
     365                g_free( m );
     366               
     367                l = l->next;
     368        }
     369        g_slist_free( *list );
     370        *list = NULL;
     371       
     372        imcb_log( ic, ret->str );
     373        g_string_free( ret, TRUE );
     374}
Note: See TracChangeset for help on using the changeset viewer.