summary refs log tree commit diff stats
path: root/src/common/inbound.c
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-05-24 02:53:28 +0100
committerGitHub <noreply@github.com>2021-05-23 20:53:28 -0500
commit37118a4d2b70c11a76c732346975c2745d3cc4c6 (patch)
treeb43cd4aa33f016b8826bdf420887cdb55551ee11 /src/common/inbound.c
parent6199635e7fbd220860e9b650b6d3fe63f60d4f80 (diff)
Implement support for the IRCv3 account-tag specification. (#2572)
Co-authored-by: Patrick <tingping@tingping.se>
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r--src/common/inbound.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c
index 3a26dce9..7175b2ae 100644
--- a/src/common/inbound.c
+++ b/src/common/inbound.c
@@ -1671,6 +1671,8 @@ inbound_toggle_caps (server *serv, const char *extensions_str, gboolean enable)
 			serv->have_server_time = enable;
 		else if (!strcmp (extension, "away-notify"))
 			serv->have_awaynotify = enable;
+		else if (!strcmp (extension, "account-tag"))
+			serv->have_account_tag = enable;
 		else if (!strcmp (extension, "sasl"))
 		{
 			serv->have_sasl = enable;
@@ -1726,6 +1728,7 @@ static const char * const supported_caps[] = {
 	"chghost",
 	"setname",
 	"invite-notify",
+	"account-tag",
 
 	/* ZNC */
 	"znc.in/server-time-iso",