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:08:11 -0500
committerJune McEnroe <june@causal.agency>2020-02-26 03:08:11 -0500
commit666701b0e0a3c72cceea463c2f47c951dcb314eb (patch)
tree2d49d30629e424cd3be2a40428a57b5f01e01df3 /client.c
parentSupport account-tag (diff)
downloadpounce-666701b0e0a3c72cceea463c2f47c951dcb314eb.tar.gz
pounce-666701b0e0a3c72cceea463c2f47c951dcb314eb.zip
Support batch
Diffstat (limited to '')
-rw-r--r--client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/client.c b/client.c
index ba5c325..d890cb9 100644
--- a/client.c
+++ b/client.c
@@ -417,6 +417,10 @@ static const char *filterAwayNotify(const char *line) {
 	return (wordcmp(line, 0, "AWAY") ? line : NULL);
 }
 
+static const char *filterBatch(const char *line) {
+	return (wordcmp(line, 0, "BATCH") ? line : NULL);
+}
+
 static const char *filterChghost(const char *line) {
 	return (wordcmp(line, 0, "CHGHOST") ? line : NULL);
 }
@@ -475,6 +479,7 @@ static const char *filterTags(const char *line) {
 static Filter *Filters[] = {
 	[CapAccountNotifyBit] = filterAccountNotify,
 	[CapAwayNotifyBit] = filterAwayNotify,
+	[CapBatchBit] = filterBatch,
 	[CapChghostBit] = filterChghost,
 	[CapExtendedJoinBit] = filterExtendedJoin,
 	[CapInviteNotifyBit] = filterInviteNotify,