diff options
author | William Pettersson <william.pettersson@gmail.com> | 2015-01-11 15:08:37 +1000 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-01-26 04:50:54 -0300 |
commit | ce402b20d82ec323e6bd5e306de934773590742d (patch) | |
tree | 10e545944b9602a53300e97354f011395d2b0afd /protocols/twitter/twitter.c | |
parent | dfaa46d37c5a71e7d8c413c7c9714db854b8b559 (diff) |
Twitter format strings
Allow users to specify how tweets should be displayed
3 new settings are available to set how tweets are displayed:
- twitter_format_string for normal tweets
- retweet_format_string for retweets
- reply_format_string for replies
For full documentation see the help files
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r-- | protocols/twitter/twitter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index eb30187f..8f5dc168 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -538,6 +538,10 @@ static void twitter_init(account_t * acc) s = set_add(&acc->set, "show_old_mentions", "0", set_eval_int, acc); s = set_add(&acc->set, "strip_newlines", "false", set_eval_bool, acc); + + s = set_add(&acc->set, "format_string", "\002[\002%i\002]\002 %c", NULL, acc); + s = set_add(&acc->set, "retweet_format_string", "\002[\002%i\002]\002 RT @%a: %c", NULL, acc); + s = set_add(&acc->set, "reply_format_string", "\002[\002%i->%r\002]\002 %c", NULL, acc); s = set_add(&acc->set, "_last_tweet", "0", NULL, acc); s->flags |= SET_HIDDEN | SET_NOSAVE; |