diff options
author | Marius Halden <marius.h@lden.org> | 2016-07-20 17:50:50 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-07-20 17:51:12 +0200 |
commit | 17875bf92ec951c552a0231fe0ee343858a82f14 (patch) | |
tree | 395d0fc39b0db4c63f4b04a8eebe940fb4b567b3 /protocols/twitter/twitter.c | |
parent | 3e9c5977fcae168218e66b1fb6a503713ed0500a (diff) |
Rename long_ids to id_length
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r-- | protocols/twitter/twitter.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |