From f8e3414af06df95b18b8e29caa74a7eea3022c92 Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Sat, 17 Jul 2021 20:04:15 +0000 Subject: Add -q/quiet option to raise default message visibility threshold Silencing all windows with `M-+' (across multiple catgirl instances) can be cumbersome, so provide an option to hide events, JOIN/PART noise, etc. by default (each window's threshold will persist across load/save cycles, i.e. when using the `-s/save' option). Started out as `-v | visibility = threshold' to set a specific level, the idea of a simpler toggle comes from june, who also squashed other bugs (as usual). --- chat.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chat.c') diff --git a/chat.c b/chat.c index 106e05f..3141052 100644 --- a/chat.c +++ b/chat.c @@ -257,6 +257,7 @@ int main(int argc, char *argv[]) { { .val = 'n', .name = "nick", required_argument }, { .val = 'o', .name = "print-chain", no_argument }, { .val = 'p', .name = "port", required_argument }, + { .val = 'q', .name = "quiet", no_argument }, { .val = 'r', .name = "real", required_argument }, { .val = 's', .name = "save", required_argument }, { .val = 't', .name = "trust", required_argument }, @@ -300,6 +301,7 @@ int main(int argc, char *argv[]) { break; case 'n': nick = optarg; break; case 'o': printCert = true; break; case 'p': port = optarg; + break; case 'q': uiThreshold = Warm; break; case 'r': real = optarg; break; case 's': save = optarg; break; case 't': trust = optarg; -- cgit 1.4.1