aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2012-09-15 17:03:33 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2012-09-15 17:03:33 +0100
commitb3d99e347e66e1559b86e7d3bf78ed8b087ec947 (patch)
tree83e5e62a00419f8c8713692db17f5caf953697ad /protocols/twitter/twitter.c
parent7281ad13e9dadb1369590617eb06265b084a1726 (diff)
Twitter module cleanup: Both Twitter and identi.ca "modules" support OAuth
now.
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r--protocols/twitter/twitter.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c
index a0ee83e9..c0811a71 100644
--- a/protocols/twitter/twitter.c
+++ b/protocols/twitter/twitter.c
@@ -241,16 +241,13 @@ static void twitter_init(account_t * acc)
{
set_t *s;
char *def_url;
- char *def_oauth;
char *def_tul;
if (strcmp(acc->prpl->name, "twitter") == 0) {
def_url = TWITTER_API_URL;
- def_oauth = "true";
def_tul = "20";
} else { /* if( strcmp( acc->prpl->name, "identica" ) == 0 ) */
def_url = IDENTICA_API_URL;
- def_oauth = "true";
def_tul = "0";
}
@@ -273,7 +270,7 @@ 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, "oauth", "true", set_eval_oauth, acc);
s = set_add(&acc->set, "show_ids", "true", set_eval_bool, acc);
s->flags |= ACC_SET_OFFLINE_ONLY;