about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2023-08-09 18:20:20 +0000
committerJune McEnroe <june@causal.agency>2023-08-09 18:20:20 +0000
commit67c3ea23270ce1576df15d960192ac4817c84e85 (patch)
tree8355964e892fc24c498a95964ac5065ef91ba528
parentNotify other clients of MARKREAD (diff)
downloadpounce-67c3ea23270ce1576df15d960192ac4817c84e85.tar.gz
pounce-67c3ea23270ce1576df15d960192ac4817c84e85.zip
Advertise znc.in/self-message
https://defs.ircdocs.horse/info/selfmessages.html

This fixes private message routing in Textual, as it only has correct
behaviour if it sees this CAP.
Diffstat (limited to '')
-rw-r--r--bounce.h1
-rw-r--r--client.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/bounce.h b/bounce.h
index e670ff3..a7bad16 100644
--- a/bounce.h
+++ b/bounce.h
@@ -114,6 +114,7 @@ static inline struct Message parse(char *line) {
 	X("setname", CapSetname) \
 	X("sts", CapSTS) \
 	X("userhost-in-names", CapUserhostInNames) \
+	X("znc.in/self-message", CapSelfMessage) \
 	X("", CapUnsupported)
 
 enum Cap {
diff --git a/client.c b/client.c
index 6bc53f4..23cde36 100644
--- a/client.c
+++ b/client.c
@@ -47,6 +47,7 @@ enum Cap clientCaps = 0
 	| CapPassive
 	| CapReadMarker
 	| CapSTS
+	| CapSelfMessage
 	| CapServerTime;
 
 char *clientOrigin;