Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    rf9928cb r38ff846  
    5858        char str[16];
    5959       
     60        s = set_add( &acc->set, "activity_timeout", "600", set_eval_int, acc );
     61       
    6062        g_snprintf( str, sizeof( str ), "%d", jabber_port_list[0] );
    6163        s = set_add( &acc->set, "port", str, set_eval_int, acc );
     
    7779        s = set_add( &acc->set, "tls", "try", set_eval_tls, acc );
    7880        s->flags |= ACC_SET_OFFLINE_ONLY;
     81       
     82        s = set_add( &acc->set, "user_agent", "BitlBee", NULL, acc );
    7983       
    8084        s = set_add( &acc->set, "xmlconsole", "false", set_eval_bool, acc );
     
    284288                g_hash_table_destroy( jd->node_cache );
    285289       
     290        jabber_buddy_remove_all( ic );
     291       
    286292        xt_free( jd->xt );
    287293       
     
    307313                bud = jabber_buddy_by_ext_jid( ic, who, 0 );
    308314        else
    309                 bud = jabber_buddy_by_jid( ic, who, 0 );
     315                bud = jabber_buddy_by_jid( ic, who, GET_BUDDY_BARE_OK );
    310316       
    311317        node = xt_new_node( "body", message, NULL );
     
    352358static void jabber_get_info( struct im_connection *ic, char *who )
    353359{
    354         struct jabber_data *jd = ic->proto_data;
    355360        struct jabber_buddy *bud;
    356361       
    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         }
     362        bud = jabber_buddy_by_jid( ic, who, GET_BUDDY_FIRST );
    365363       
    366364        while( bud )
     
    476474{
    477475        /* Just any whitespace character is enough as a keepalive for XMPP sessions. */
    478         jabber_write( ic, "\n", 1 );
     476        if( !jabber_write( ic, "\n", 1 ) )
     477                return;
    479478       
    480479        /* This runs the garbage collection every minute, which means every packet
Note: See TracChangeset for help on using the changeset viewer.