From 17875bf92ec951c552a0231fe0ee343858a82f14 Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Wed, 20 Jul 2016 17:50:50 +0200 Subject: Rename long_ids to id_length --- protocols/twitter/twitter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/twitter/twitter.c') diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index b8e31035..0c075c77 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -552,7 +552,7 @@ static char *set_eval_mode(set_t * set, char *value) } } -static char *set_eval_long_ids(set_t * set, char *value) +static char *set_eval_id_length(set_t * set, char *value) { int len = atoi(value); if (len >= 1 || len <= 4) @@ -605,7 +605,7 @@ static void twitter_init(account_t * acc) s = set_add(&acc->set, "strip_newlines", "false", set_eval_bool, acc); - s = set_add(&acc->set, "long_ids", "2", set_eval_long_ids, acc); + s = set_add(&acc->set, "id_length", "2", set_eval_id_length, acc); s->flags |= ACC_SET_OFFLINE_ONLY; s = set_add(&acc->set, "channel_name", NULL, set_eval_channel_name, acc); @@ -689,7 +689,7 @@ static void twitter_login(account_t * acc) imcb_add_buddy(ic, name, NULL); imcb_buddy_status(ic, name, OPT_LOGGED_IN, NULL, NULL); - td->id_length = set_getint(&ic->acc->set, "long_ids"); + td->id_length = set_getint(&ic->acc->set, "id_length"); td->log_length = 0; for (i = 0; i < td->id_length; i++) { td->log_length = (td->log_length << 4) + 0x0F; -- cgit v1.2.3