summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorC. McEnroe2020-02-29 01:03:46 -0500
committerC. McEnroe2020-02-29 01:03:46 -0500
commit8570a62235e5e9b6a6d719fd8b92cedc91a1d511 (patch)
tree209a365efebcec4457f4563a4308e6c5c8cdfdf4 /chat.h
parent78b4832bfe10b90e522bbb51c05ee19a361bf318 (diff)
Implement the causal.agency/consumer capability
Diffstat (limited to 'chat.h')
-rw-r--r--chat.h3
1 files changed, 3 insertions, 0 deletions
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 {