diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-12-15 13:45:40 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-12-15 13:45:40 +0100 |
commit | d52d214448fa5db7167ee89b532f299af02aa10c (patch) | |
tree | 961430092a684d9a38fc48a787fcee67731857f6 /src/core/wee-upgrade.c | |
parent | 52cbd0b9217f2ea5f93c30bd1043cd4ad9fa494a (diff) | |
download | weechat-d52d214448fa5db7167ee89b532f299af02aa10c.zip |
core: add buffer property "highlight_tags_restrict", rename option irc.look.highlight_tags to irc.look.highlight_tags_restrict
The buffer property "highlight_tags" is renamed to "highlight_tags_restrict".
New behavior for buffer property "highlight_tags": force highlight on tags.
Option irc.look.highlight_tags is renamed to irc.look.highlight_tags_restrict.
Diffstat (limited to 'src/core/wee-upgrade.c')
-rw-r--r-- | src/core/wee-upgrade.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c index 09af3d0b2..6c1c87477 100644 --- a/src/core/wee-upgrade.c +++ b/src/core/wee-upgrade.c @@ -521,8 +521,23 @@ upgrade_weechat_read_cb (void *data, infolist_string (infolist, "highlight_words")); gui_buffer_set_highlight_regex (upgrade_current_buffer, infolist_string (infolist, "highlight_regex")); - gui_buffer_set_highlight_tags (upgrade_current_buffer, - infolist_string (infolist, "highlight_tags")); + if (infolist_search_var (infolist, + "highlight_tags_restrict")) + { + /* WeeChat >= 0.4.3 */ + gui_buffer_set_highlight_tags_restrict (upgrade_current_buffer, + infolist_string (infolist, + "highlight_tags_restrict")); + gui_buffer_set_highlight_tags (upgrade_current_buffer, + infolist_string (infolist, + "highlight_tags")); + } + else + { + /* WeeChat <= 0.4.2 */ + gui_buffer_set_highlight_tags_restrict (upgrade_current_buffer, + infolist_string (infolist, "highlight_tags")); + } gui_buffer_set_hotlist_max_level_nicks (upgrade_current_buffer, infolist_string (infolist, "hotlist_max_level_nicks")); index = 0; |