summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-26 03:20:59 -0500
committerJune McEnroe <june@causal.agency>2020-02-26 03:20:59 -0500
commit348dd564a15ae8dd5aee6a60805a44bd95e73f5b (patch)
tree157ec45b0161923fd18060a1543606b619f6f670
parentSupport labeled-response (diff)
downloadpounce-348dd564a15ae8dd5aee6a60805a44bd95e73f5b.tar.gz
pounce-348dd564a15ae8dd5aee6a60805a44bd95e73f5b.zip
Support setname
-rw-r--r--bounce.h1
-rw-r--r--client.c5
-rw-r--r--pounce.11
3 files changed, 7 insertions, 0 deletions
diff --git a/bounce.h b/bounce.h
index e87d7bb..a4b1a91 100644
--- a/bounce.h
+++ b/bounce.h
@@ -78,6 +78,7 @@ static inline struct Message parse(char *line) {
 	X("multi-prefix", CapMultiPrefix) \
 	X("sasl", CapSASL) \
 	X("server-time", CapServerTime) \
+	X("setname", CapSetname) \
 	X("userhost-in-names", CapUserhostInNames) \
 	X("", CapUnsupported)
 
diff --git a/client.c b/client.c
index 61cd7d0..c472f51 100644
--- a/client.c
+++ b/client.c
@@ -464,6 +464,10 @@ static const char *filterMultiPrefix(const char *line) {
 	}
 }
 
+static const char *filterSetname(const char *line) {
+	return (wordcmp(line, 0, "SETNAME") ? line : NULL);
+}
+
 static const char *filterUserhostInNames(const char *line) {
 	if (wordcmp(line, 0, "353")) return line;
 	static regex_t regex;
@@ -490,6 +494,7 @@ static Filter *Filters[] = {
 	[CapLabeledResponseBit] = filterLabeledResponse,
 	[CapMessageTagsBit] = filterMessageTags,
 	[CapMultiPrefixBit] = filterMultiPrefix,
+	[CapSetnameBit] = filterSetname,
 	[CapUserhostInNamesBit] = filterUserhostInNames,
 };
 
diff --git a/pounce.1 b/pounce.1
index 470324d..58a0532 100644
--- a/pounce.1
+++ b/pounce.1
@@ -348,6 +348,7 @@ is supported:
 .Sy message-tags ,
 .Sy multi-prefix ,
 .Sy server-time ,
+.Sy setname ,
 .Sy userhost-in-names .
 .
 .Pp
0'>2021-01-12Process htagml file line by lineJune McEnroe This simplifies some things, adds support for line number tag definitions, and should enable combining htagml with other preprocessors in the future. 2021-01-12Split fields by tab onlyJune McEnroe Also don't fail hard on non-forward-search definitions. 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe neovim is laggy as hell in my OpenBSD VM, so I switched to vi so I could type without getting frustrated. 2021-01-09Add c -t flag to print expression typeJune McEnroe Also add missing float case. 2021-01-05Update taglineJune McEnroe