From 8570a62235e5e9b6a6d719fd8b92cedc91a1d511 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Sat, 29 Feb 2020 01:03:46 -0500 Subject: Implement the causal.agency/consumer capability --- chat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chat.h') diff --git a/chat.h b/chat.h index 5b4e14c..91d175f 100644 --- a/chat.h +++ b/chat.h @@ -96,6 +96,7 @@ extern struct Network { } network; #define ENUM_CAP \ + X("causal.agency/consumer", CapConsumer) \ X("extended-join", CapExtendedJoin) \ X("invite-notify", CapInviteNotify) \ X("multi-prefix", CapMultiPrefix) \ @@ -112,6 +113,7 @@ enum Cap { extern struct Self { bool debug; bool restricted; + size_t pos; enum Cap caps; char *plain; char *join; @@ -128,6 +130,7 @@ static inline void set(char **field, const char *value) { } #define ENUM_TAG \ + X("causal.agency/pos", TagPos) \ X("time", TagTime) enum Tag { -- cgit 1.4.1-2-gfad0