diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-04-05 16:30:13 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-04-05 16:30:13 +0200 |
commit | c7ce05d5ec3d967cd7afa3cd8acd5183bd1a97bd (patch) | |
tree | 46991d0441ef95e60aaa73e66329fb30798a0290 /src/core/wee-upgrade.c | |
parent | 2beefdfc2ae36c4db1d68ab7fdc02c1d7e65ab7a (diff) | |
download | weechat-c7ce05d5ec3d967cd7afa3cd8acd5183bd1a97bd.zip |
core: add hidden buffers, add options hide/unhide in command /buffer
Diffstat (limited to 'src/core/wee-upgrade.c')
-rw-r--r-- | src/core/wee-upgrade.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c index 2396fd728..b9d5417b3 100644 --- a/src/core/wee-upgrade.c +++ b/src/core/wee-upgrade.c @@ -472,6 +472,16 @@ upgrade_weechat_read_cb (void *data, infolist_integer (infolist, "type"); upgrade_current_buffer->notify = infolist_integer (infolist, "notify"); + /* "hidden" is in WeeChat >= 0.4.4 */ + if (infolist_search_var (infolist, "hidden")) + { + upgrade_current_buffer->hidden = + infolist_integer (infolist, "hidden"); + } + else + { + upgrade_current_buffer->hidden = 0; + } if (infolist_search_var (infolist, "day_change")) { upgrade_current_buffer->day_change = |