Changeset ce199b7 for protocols


Ignore:
Timestamp:
2011-12-21T11:21:04Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
0dd6570
Parents:
e14b47b8
Message:

Make it easier to add OAuth-authenticated accounts without having to type
a bogus password.

Location:
protocols
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    re14b47b8 rce199b7  
    6161        s = set_add( &acc->set, "activity_timeout", "600", set_eval_int, acc );
    6262       
    63         s = set_add( &acc->set, "oauth", "false", set_eval_bool, acc );
     63        s = set_add( &acc->set, "oauth", "false", set_eval_oauth, acc );
    6464
    6565        g_snprintf( str, sizeof( str ), "%d", jabber_port_list[0] );
     
    7676        s = set_add( &acc->set, "resource_select", "activity", NULL, acc );
    7777       
     78        s = set_add( &acc->set, "sasl", "true", set_eval_bool, acc );
     79        s->flags |= ACC_SET_OFFLINE_ONLY | SET_HIDDEN_DEFAULT;
     80       
    7881        s = set_add( &acc->set, "server", NULL, set_eval_account, acc );
    7982        s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY | SET_NULL_OK;
     
    8487        s = set_add( &acc->set, "tls", "try", set_eval_tls, acc );
    8588        s->flags |= ACC_SET_OFFLINE_ONLY;
    86        
    87         s = set_add( &acc->set, "sasl", "true", set_eval_bool, acc );
    88         s->flags |= ACC_SET_OFFLINE_ONLY | SET_HIDDEN_DEFAULT;
    8989
    9090        s = set_add( &acc->set, "user_agent", "BitlBee", NULL, acc );
  • protocols/twitter/twitter.c

    re14b47b8 rce199b7  
    240240        s->flags |= ACC_SET_OFFLINE_ONLY;
    241241
     242        s = set_add(&acc->set, "oauth", def_oauth, set_eval_oauth, acc);
     243
    242244        s = set_add(&acc->set, "show_ids", "false", set_eval_bool, acc);
    243245        s->flags |= ACC_SET_OFFLINE_ONLY;
    244246
    245247        s = set_add(&acc->set, "show_old_mentions", "true", set_eval_bool, acc);
    246 
    247         s = set_add(&acc->set, "oauth", def_oauth, set_eval_bool, acc);
    248248}
    249249
Note: See TracChangeset for help on using the changeset viewer.