summaryrefslogtreecommitdiff
path: root/src/core/wee-upgrade.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-03-25 11:44:57 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-03-25 11:44:57 +0100
commit3375db7720ef42bab8cc6355e02e286484fd7164 (patch)
tree50ef192bfdb891f444d5e0de1ff233e339027eb6 /src/core/wee-upgrade.c
parentd0138a87423c3f5842ca9d0e27df574fecc21fe5 (diff)
downloadweechat-3375db7720ef42bab8cc6355e02e286484fd7164.zip
core: save/restore buffer property "day_change" on /upgrade
Diffstat (limited to 'src/core/wee-upgrade.c')
-rw-r--r--src/core/wee-upgrade.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c
index 6837fb21c..ad7b0b505 100644
--- a/src/core/wee-upgrade.c
+++ b/src/core/wee-upgrade.c
@@ -472,6 +472,15 @@ upgrade_weechat_read_cb (void *data,
infolist_integer (infolist, "type");
upgrade_current_buffer->notify =
infolist_integer (infolist, "notify");
+ if (infolist_search_var (infolist, "day_change"))
+ {
+ upgrade_current_buffer->day_change =
+ infolist_integer (infolist, "day_change");
+ }
+ else
+ {
+ upgrade_current_buffer->day_change = 1;
+ }
upgrade_current_buffer->nicklist_case_sensitive =
infolist_integer (infolist, "nicklist_case_sensitive");
upgrade_current_buffer->nicklist_display_groups =