diff options
author | June McEnroe <june@causal.agency> | 2020-02-26 03:20:59 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-02-26 03:20:59 -0500 |
commit | 348dd564a15ae8dd5aee6a60805a44bd95e73f5b (patch) | |
tree | 157ec45b0161923fd18060a1543606b619f6f670 /client.c | |
parent | Support labeled-response (diff) | |
download | pounce-348dd564a15ae8dd5aee6a60805a44bd95e73f5b.tar.gz pounce-348dd564a15ae8dd5aee6a60805a44bd95e73f5b.zip |
Support setname
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 5 |
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, }; |