Changeset d3a672c for protocols


Ignore:
Timestamp:
2006-08-04T13:56:53Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
846cec61
Parents:
0aaca60
Message:

Added a per-account web_aware setting for ICQ connections.

Location:
protocols/oscar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r0aaca60 rd3a672c  
    362362        s = set_add( &acc->set, "server", NULL, set_eval_account, acc );
    363363        s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY;
     364       
     365        if (isdigit(acc->user[0])) {
     366                s = set_add( &acc->set, "web_aware", "false", set_eval_bool, acc );
     367                s->flags |= ACC_SET_OFFLINE_ONLY;
     368        }
    364369}
    365370
  • protocols/oscar/service.c

    r0aaca60 rd3a672c  
    732732        guint32 data;
    733733        int tlvlen;
     734        struct gaim_connection *gc = sess ? sess->aux_data : NULL;
    734735
    735736        data = AIM_ICQ_STATE_HIDEIP | status; /* yay for error checking ;^) */
     737       
     738        if (gc && set_getbool(&gc->acc->set, "web_aware"))
     739                data |= AIM_ICQ_STATE_WEBAWARE;
    736740
    737741        tlvlen = aim_addtlvtochain32(&tl, 0x0006, data);
Note: See TracChangeset for help on using the changeset viewer.