summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-03-25 11:47:46 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-03-25 11:47:46 +0100
commit28df18379fa65e9d6bf8a12908218c150af1f613 (patch)
tree8d1b1756e895a9bdd7dab90e676562698d4c3fb3
parent3375db7720ef42bab8cc6355e02e286484fd7164 (diff)
downloadweechat-28df18379fa65e9d6bf8a12908218c150af1f613.zip
core: save/restore buffer property "clear" on /upgrade
-rw-r--r--src/core/wee-upgrade.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c
index ad7b0b505..ccc24ef37 100644
--- a/src/core/wee-upgrade.c
+++ b/src/core/wee-upgrade.c
@@ -481,6 +481,17 @@ upgrade_weechat_read_cb (void *data,
{
upgrade_current_buffer->day_change = 1;
}
+ if (infolist_search_var (infolist, "clear"))
+ {
+ upgrade_current_buffer->clear =
+ infolist_integer (infolist, "clear");
+ }
+ else
+ {
+ upgrade_current_buffer->clear =
+ (upgrade_current_buffer->type == GUI_BUFFER_TYPE_FREE) ?
+ 0 : 1;
+ }
upgrade_current_buffer->nicklist_case_sensitive =
infolist_integer (infolist, "nicklist_case_sensitive");
upgrade_current_buffer->nicklist_display_groups =