about summary refs log tree commit diff
path: root/client.c
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 /client.c
parentSupport labeled-response (diff)
downloadpounce-348dd564a15ae8dd5aee6a60805a44bd95e73f5b.tar.gz
pounce-348dd564a15ae8dd5aee6a60805a44bd95e73f5b.zip
Support setname
Diffstat (limited to '')
-rw-r--r--client.c5
1 files changed, 5 insertions, 0 deletions
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,
 };