Changeset 6b96de6 for protocols/oscar


Ignore:
Timestamp:
2010-11-15T23:00:32Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
10685d3
Parents:
ed0589c
Message:

Un-deprecate login.icq.com, ICQ is back on its own server thanks to the
acquisition from a while ago. I was warned about two weeks ago that this
was going to happen ... apparently sooner than expected.

Location:
protocols/oscar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/aim.h

    red0589c r6b96de6  
    9494 *
    9595 */
    96 #define AIM_DEFAULT_LOGIN_SERVER "login.messaging.aol.com"
     96#define AIM_DEFAULT_LOGIN_SERVER_AIM "login.messaging.aol.com"
     97#define AIM_DEFAULT_LOGIN_SERVER_ICQ "login.icq.com"
    9798#define AIM_LOGIN_PORT 5190
    9899
  • protocols/oscar/oscar.c

    red0589c r6b96de6  
    369369{
    370370        set_t *s;
    371        
    372         if (isdigit(acc->user[0])) {
     371        gboolean icq = isdigit(acc->user[0]);
     372       
     373        if (icq) {
    373374                set_add(&acc->set, "ignore_auth_requests", "false", set_eval_bool, acc);
    374375                set_add(&acc->set, "old_icq_auth", "false", set_eval_bool, acc);
    375376        }
    376377       
    377         s = set_add(&acc->set, "server", AIM_DEFAULT_LOGIN_SERVER, set_eval_account, acc);
     378        s = set_add(&acc->set, "server",
     379                    icq ? AIM_DEFAULT_LOGIN_SERVER_ICQ
     380                        : AIM_DEFAULT_LOGIN_SERVER_AIM, set_eval_account, acc);
    378381        s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY;
    379382       
    380         if(isdigit(acc->user[0])) {
     383        if (icq) {
    381384                s = set_add(&acc->set, "web_aware", "false", set_eval_bool, acc);
    382385                s->flags |= ACC_SET_OFFLINE_ONLY;
Note: See TracChangeset for help on using the changeset viewer.