From 6b96de6730acc68352e1a7bc4ef5415a4e97ed92 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 15 Nov 2010 23:00:32 +0000 Subject: 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. --- protocols/oscar/oscar.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'protocols/oscar/oscar.c') diff --git a/protocols/oscar/oscar.c b/protocols/oscar/oscar.c index 3eea5825..0d23b7e8 100644 --- a/protocols/oscar/oscar.c +++ b/protocols/oscar/oscar.c @@ -368,16 +368,19 @@ static gboolean oscar_login_connect(gpointer data, gint source, b_input_conditio static void oscar_init(account_t *acc) { set_t *s; + gboolean icq = isdigit(acc->user[0]); - if (isdigit(acc->user[0])) { + if (icq) { 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); + s = set_add(&acc->set, "server", + icq ? AIM_DEFAULT_LOGIN_SERVER_ICQ + : AIM_DEFAULT_LOGIN_SERVER_AIM, set_eval_account, acc); s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY; - if(isdigit(acc->user[0])) { + if (icq) { s = set_add(&acc->set, "web_aware", "false", set_eval_bool, acc); s->flags |= ACC_SET_OFFLINE_ONLY; } -- cgit v1.2.3