From ce199b726735374aca84b2111bb19ec103478ebc Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 21 Dec 2011 12:21:04 +0100 Subject: Make it easier to add OAuth-authenticated accounts without having to type a bogus password. --- protocols/twitter/twitter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/twitter') diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index 76ccc3eb..1cf0b0b5 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -239,12 +239,12 @@ static void twitter_init(account_t * acc) s = set_add(&acc->set, "mode", "chat", set_eval_mode, acc); s->flags |= ACC_SET_OFFLINE_ONLY; + s = set_add(&acc->set, "oauth", def_oauth, set_eval_oauth, acc); + s = set_add(&acc->set, "show_ids", "false", set_eval_bool, acc); s->flags |= ACC_SET_OFFLINE_ONLY; s = set_add(&acc->set, "show_old_mentions", "true", set_eval_bool, acc); - - s = set_add(&acc->set, "oauth", def_oauth, set_eval_bool, acc); } /** -- cgit v1.2.3 From e306fbf84aa37ab934c5ea18ccfd75da041af052 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 21 Dec 2011 20:35:13 +0100 Subject: Fixed a bug that probably (can't test this now since it's down) broke OAuth setup for identi.ca. Turning on oauth for identi.ca accounts by default now. --- protocols/twitter/twitter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/twitter') diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index 1cf0b0b5..ef49e83a 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -219,7 +219,7 @@ static void twitter_init(account_t * acc) def_oauth = "true"; } else { /* if( strcmp( acc->prpl->name, "identica" ) == 0 ) */ def_url = IDENTICA_API_URL; - def_oauth = "false"; + def_oauth = "true"; } s = set_add(&acc->set, "auto_reply_timeout", "10800", set_eval_int, acc); -- cgit v1.2.3