Changeset 327af51


Ignore:
Timestamp:
2010-08-21T17:27:32Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4022b68
Parents:
a366cca
Message:

Some general cleanup, plus fixing a bug in the memberlist parsing code:
the lists can come in in any order, so parse it *completely* before showing
auth requests.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • doc/CHANGES

    ra366cca r327af51  
    44http://bugs.bitlbee.org/bitlbee/timeline?daysback=90&changeset=on
    55
    6 Version 1.3dev:
     6Version ...
    77- For the first time since 2007, a dev snapshot. Like then, this is pretty
    88  stable already (running on testing.bitlbee.org for weeks by now), but not
     
    5252    for a list of supported protocols (works only in libpurple-enabled
    5353    binaries).
     54- Rewritten MSN module, implementing MSNP15 instead of the old MSNP8:
     55  * MSNP8 support from MSN was getting pretty unreliable. There were issues
     56    with remembering display names and adding contacts/auth requests.
     57  * Support for sending offline messages.
     58  * Support for setting and reading status messages.
    5459- Support for file transfers, in and out. /DCC SEND a file to a contact and
    5560  it becomes a file transfer, and incoming file transfers become /DCC SENDs
     
    5964  fixes issues with authorization requests.
    6065
    61 Finished 6 Aug 2010
     66Finished ...
    6267
    6368Version 1.2.8:
  • lib/ssl_gnutls.c

    ra366cca r327af51  
    189189                ssl_errno = SSL_AGAIN;
    190190       
    191         if( getenv( "BITLBEE_DEBUG" ) && st > 0 ) write( 1, buf, st );
     191        if( 0 && getenv( "BITLBEE_DEBUG" ) && st > 0 ) write( 1, buf, st );
    192192       
    193193        return st;
     
    210210                ssl_errno = SSL_AGAIN;
    211211       
    212         if( getenv( "BITLBEE_DEBUG" ) && st > 0 ) write( 1, buf, st );
     212        if( 0 && getenv( "BITLBEE_DEBUG" ) && st > 0 ) write( 1, buf, st );
    213213       
    214214        return st;
  • lib/ssl_openssl.c

    ra366cca r327af51  
    207207        }
    208208       
    209         if( getenv( "BITLBEE_DEBUG" ) && st > 0 ) write( 1, buf, st );
     209        if( 0 && getenv( "BITLBEE_DEBUG" ) && st > 0 ) write( 1, buf, st );
    210210       
    211211        return st;
     
    224224        st = SSL_write( ((struct scd*)conn)->ssl, buf, len );
    225225       
    226         if( getenv( "BITLBEE_DEBUG" ) && st > 0 ) write( 1, buf, st );
     226        if( 0 && getenv( "BITLBEE_DEBUG" ) && st > 0 ) write( 1, buf, st );
    227227       
    228228        ssl_errno = SSL_OK;
  • lib/xmltree.c

    ra366cca r327af51  
    338338        /* Print the attributes */
    339339        for( i = 0; node->attr[i].key; i ++ )
    340                 printf( " %s=\"%s\"", node->attr[i].key, g_markup_escape_text( node->attr[i].value, -1 ) );
     340        {
     341                char *v = g_markup_escape_text( node->attr[i].value, -1 );
     342                printf( " %s=\"%s\"", node->attr[i].key, v );
     343                g_free( v );
     344        }
    341345       
    342346        /* /> in case there's really *nothing* inside this tag, otherwise
     
    358362                for( i = 0; node->text[i] && isspace( node->text[i] ); i ++ );
    359363                if( node->text[i] )
    360                         printf( "%s", g_markup_escape_text( node->text, -1 ) );
     364                {
     365                        char *v = g_markup_escape_text( node->text, -1 );
     366                        printf( "%s", v );
     367                        g_free( v );
     368                }
    361369        }
    362370       
  • protocols/msn/soap.c

    ra366cca r327af51  
    554554                bd->flags |= MSN_BUDDY_BL;
    555555        else if( strcmp( role, "Reverse" ) == 0 )
    556         {
    557556                bd->flags |= MSN_BUDDY_RL;
    558                 msn_buddy_ask( bu );
    559         }
    560557        else if( strcmp( role, "Pending" ) == 0 )
    561         {
    562558                bd->flags |= MSN_BUDDY_PL;
    563                 msn_buddy_ask( bu );
    564         }
    565        
    566         printf( "%s %d\n", handle, bd->flags );
     559       
     560        printf( "%p %s %d\n", bu, handle, bd->flags );
    567561       
    568562        return XT_HANDLED;
     
    783777static int msn_soap_addressbook_handle_response( struct msn_soap_req_data *soap_req )
    784778{
     779        GSList *l;
     780       
     781        for( l = soap_req->ic->bee->users; l; l = l->next )
     782        {
     783                struct bee_user *bu = l->data;
     784               
     785                if( bu->ic == soap_req->ic )
     786                        msn_buddy_ask( bu );
     787        }
     788       
    785789        msn_auth_got_contact_list( soap_req->ic );
     790       
    786791        return MSN_SOAP_OK;
    787792}
Note: See TracChangeset for help on using the changeset viewer.