Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    raea8b68 rf9928cb  
    5858        char str[16];
    5959       
    60         s = set_add( &acc->set, "activity_timeout", "600", set_eval_int, acc );
    61        
    6260        g_snprintf( str, sizeof( str ), "%d", jabber_port_list[0] );
    6361        s = set_add( &acc->set, "port", str, set_eval_int, acc );
     
    6563       
    6664        s = set_add( &acc->set, "priority", "0", set_eval_priority, acc );
    67 
    68         s = set_add( &acc->set, "proxy", "<local>;<auto>", NULL, acc );
    6965       
    7066        s = set_add( &acc->set, "resource", "BitlBee", NULL, acc );
     
    266262        struct jabber_data *jd = ic->proto_data;
    267263       
    268         while( jd->filetransfers )
    269                 imcb_file_canceled( ic, ( ( struct jabber_transfer *) jd->filetransfers->data )->ft, "Logging out" );
    270 
    271         while( jd->streamhosts )
    272         {
    273                 jabber_streamhost_t *sh = jd->streamhosts->data;
    274                 jd->streamhosts = g_slist_remove( jd->streamhosts, sh );
    275                 g_free( sh->jid );
    276                 g_free( sh->host );
    277                 g_free( sh );
    278         }
    279 
    280264        if( jd->fd >= 0 )
    281265                jabber_end_stream( ic );
    282266       
    283267        while( ic->groupchats )
    284                 jabber_chat_free( ic->groupchats->data );
     268                jabber_chat_free( ic->groupchats );
    285269       
    286270        if( jd->r_inpa >= 0 )
     
    323307                bud = jabber_buddy_by_ext_jid( ic, who, 0 );
    324308        else
    325                 bud = jabber_buddy_by_jid( ic, who, GET_BUDDY_BARE_OK );
     309                bud = jabber_buddy_by_jid( ic, who, 0 );
    326310       
    327311        node = xt_new_node( "body", message, NULL );
     
    368352static void jabber_get_info( struct im_connection *ic, char *who )
    369353{
     354        struct jabber_data *jd = ic->proto_data;
    370355        struct jabber_buddy *bud;
    371356       
    372         bud = jabber_buddy_by_jid( ic, who, GET_BUDDY_FIRST );
     357        if( strchr( who, '/' ) )
     358                bud = jabber_buddy_by_jid( ic, who, 0 );
     359        else
     360        {
     361                char *s = jabber_normalize( who );
     362                bud = g_hash_table_lookup( jd->buddies, s );
     363                g_free( s );
     364        }
    373365       
    374366        while( bud )
     
    558550        ret->send_typing = jabber_send_typing;
    559551        ret->handle_cmp = g_strcasecmp;
    560         ret->transfer_request = jabber_si_transfer_request;
    561552
    562553        register_protocol( ret );
Note: See TracChangeset for help on using the changeset viewer.