From bceae9b739d72a2b1cf3c0e654f3c4e12f1f2fa5 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Fri, 30 Dec 2022 10:16:52 -0500 Subject: [PATCH] add standard-replies capability --- gencapdefs.py | 8 +++++++- irc/caps/defs.go | 9 +++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/gencapdefs.py b/gencapdefs.py index 065fe761..d1cd2c89 100644 --- a/gencapdefs.py +++ b/gencapdefs.py @@ -195,6 +195,12 @@ CAPDEFS = [ url="https://github.com/ircv3/ircv3-specifications/pull/503", standard="proposed IRCv3", ), + CapDef( + identifier="StandardReplies", + name="standard-replies", + url="https://github.com/ircv3/ircv3-specifications/pull/506", + standard="IRCv3", + ), ] def validate_defs(): @@ -230,7 +236,7 @@ package caps const ( // number of recognized capabilities: numCapabs = %d - // length of the uint64 array that represents the bitset: + // length of the uint32 array that represents the bitset: bitsetLen = %d ) """ % (numCapabs, bitsetLen), file=output) diff --git a/irc/caps/defs.go b/irc/caps/defs.go index a947455a..cb7d5db0 100644 --- a/irc/caps/defs.go +++ b/irc/caps/defs.go @@ -7,8 +7,8 @@ package caps const ( // number of recognized capabilities: - numCapabs = 30 - // length of the uint64 array that represents the bitset: + numCapabs = 31 + // length of the uint32 array that represents the bitset: bitsetLen = 1 ) @@ -117,6 +117,10 @@ const ( // https://ircv3.net/specs/extensions/setname.html SetName Capability = iota + // StandardReplies is the IRCv3 capability named "standard-replies": + // https://github.com/ircv3/ircv3-specifications/pull/506 + StandardReplies Capability = iota + // STS is the IRCv3 capability named "sts": // https://ircv3.net/specs/extensions/sts.html STS Capability = iota @@ -163,6 +167,7 @@ var ( "sasl", "server-time", "setname", + "standard-replies", "sts", "userhost-in-names", "znc.in/playback",