From fe0d18a3a9fe27d56f8551c5fe91aeca5e1b415b Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 26 Feb 2020 03:15:14 -0500 Subject: Support labeled-response --- client.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client.c') diff --git a/client.c b/client.c index d890cb9..61cd7d0 100644 --- a/client.c +++ b/client.c @@ -437,6 +437,10 @@ static const char *filterInviteNotify(const char *line) { return (wordcmp(line, 1, stateNick()) ? NULL : line); } +static const char *filterLabeledResponse(const char *line) { + return (wordcmp(line, 0, "ACK") ? line : NULL); +} + static const char *filterMessageTags(const char *line) { return (wordcmp(line, 0, "TAGMSG") ? line : NULL); } @@ -483,6 +487,7 @@ static Filter *Filters[] = { [CapChghostBit] = filterChghost, [CapExtendedJoinBit] = filterExtendedJoin, [CapInviteNotifyBit] = filterInviteNotify, + [CapLabeledResponseBit] = filterLabeledResponse, [CapMessageTagsBit] = filterMessageTags, [CapMultiPrefixBit] = filterMultiPrefix, [CapUserhostInNamesBit] = filterUserhostInNames, -- cgit 1.4.1