3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 11:59:40 +01:00

add standard-replies capability

This commit is contained in:
Shivaram Lingamneni 2022-12-30 10:16:52 -05:00
parent 30fbfe4cc0
commit bceae9b739
2 changed files with 14 additions and 3 deletions

View File

@ -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)

View File

@ -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",