diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-02 09:47:18 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-02 09:47:18 +0100 |
commit | 3dc6d86076dbea16c313bb87aa2f37166f289a8e (patch) | |
tree | 592583109ae0030302143f74d6f0ef0a63f35669 | |
parent | ba3233ce0b1fc34f3ad0a450bb1b661909dafb79 (diff) |
Disable old-style ICQ authentication. It looks like AOL or whoever is slowly
taking down support for it. Just to be sure, it can be re-enabled with a
setting, I'll remove that after the next release.
-rw-r--r-- | protocols/oscar/auth.c | 3 | ||||
-rw-r--r-- | protocols/oscar/oscar.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/protocols/oscar/auth.c b/protocols/oscar/auth.c index eb6a9d64..0f7c8d0f 100644 --- a/protocols/oscar/auth.c +++ b/protocols/oscar/auth.c @@ -119,11 +119,12 @@ int aim_request_login(aim_session_t *sess, aim_conn_t *conn, const char *sn) aim_frame_t *fr; aim_snacid_t snacid; aim_tlvlist_t *tl = NULL; + struct im_connection *ic = sess->aux_data; if (!sess || !conn || !sn) return -EINVAL; - if ((sn[0] >= '0') && (sn[0] <= '9')) + if (isdigit(sn[0]) && set_getbool(&ic->acc->set, "old_icq_auth")) return goddamnicq(sess, conn, sn); sess->flags |= AIM_SESS_FLAGS_SNACLOGIN; diff --git a/protocols/oscar/oscar.c b/protocols/oscar/oscar.c index 9f33f320..9602a496 100644 --- a/protocols/oscar/oscar.c +++ b/protocols/oscar/oscar.c @@ -373,6 +373,7 @@ static void oscar_init(account_t *acc) if (isdigit(acc->user[0])) { set_add(&acc->set, "ignore_auth_requests", "false", set_eval_bool, acc); + set_add(&acc->set, "old_icq_auth", "false", set_eval_bool, acc); } s = set_add(&acc->set, "server", AIM_DEFAULT_LOGIN_SERVER, set_eval_account, acc); |