summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index c787b3c..d1fc6f7 100644
--- a/ui.c
+++ b/ui.c
@@ -955,7 +955,8 @@ static const time_t Signatures[] = {
 	0x6C72696774616303, // no buffer line heat
 	0x6C72696774616304, // no mute
 	0x6C72696774616305, // no URLs
-	0x6C72696774616306,
+	0x6C72696774616306, // no thresh
+	0x6C72696774616307,
 };
 
 static size_t signatureVersion(time_t signature) {
@@ -977,7 +978,7 @@ int uiSave(const char *name) {
 	if (!file) return -1;
 
 	int error = 0
-		|| writeTime(file, Signatures[5])
+		|| writeTime(file, Signatures[6])
 		|| writeTime(file, self.pos);
 	if (error) return error;
 	for (uint num = 0; num < windows.len; ++num) {
@@ -985,6 +986,7 @@ int uiSave(const char *name) {
 		error = 0
 			|| writeString(file, idNames[window->id])
 			|| writeTime(file, window->mute)
+			|| writeTime(file, window->thresh)
 			|| writeTime(file, window->heat)
 			|| writeTime(file, window->unreadSoft)
 			|| writeTime(file, window->unreadWarm);
@@ -1048,6 +1050,7 @@ void uiLoad(const char *name) {
 	while (0 < readString(file, &buf, &cap) && buf[0]) {
 		struct Window *window = windows.ptrs[windowFor(idFor(buf))];
 		if (version > 3) window->mute = readTime(file);
+		if (version > 5) window->thresh = readTime(file);
 		if (version > 0) {
 			window->heat = readTime(file);
 			window->unreadSoft = readTime(file);
f='/test/commit/ui.c?h=catgirl&id=b36a1347022965fdbe1b61298dc6a05be2d2a34d&follow=1'>Use formatParse split to position input cursorJune McEnroe 2018-09-12Factor out IRC formatting parsingJune McEnroe 2018-09-11Add /help equivalent to /manJune McEnroe 2018-09-11Don't render every PM as a pingJune McEnroe 2018-09-11Add urlOpenMatchJune McEnroe 2018-09-10Depend on man.sh for chroot.tar targetJune McEnroe 2018-09-10Set LESSSECURE=1 in man.shJune McEnroe Ridiculous. 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe