Browse Source

add standard-replies capability

tags/v2.12.0-rc1
Shivaram Lingamneni 1 year ago
parent
commit
bceae9b739
2 changed files with 14 additions and 3 deletions
  1. 7
    1
      gencapdefs.py
  2. 7
    2
      irc/caps/defs.go

+ 7
- 1
gencapdefs.py View File

@@ -195,6 +195,12 @@ CAPDEFS = [
195 195
         url="https://github.com/ircv3/ircv3-specifications/pull/503",
196 196
         standard="proposed IRCv3",
197 197
     ),
198
+    CapDef(
199
+        identifier="StandardReplies",
200
+        name="standard-replies",
201
+        url="https://github.com/ircv3/ircv3-specifications/pull/506",
202
+        standard="IRCv3",
203
+    ),
198 204
 ]
199 205
 
200 206
 def validate_defs():
@@ -230,7 +236,7 @@ package caps
230 236
 const (
231 237
 	// number of recognized capabilities:
232 238
 	numCapabs = %d
233
-	// length of the uint64 array that represents the bitset:
239
+	// length of the uint32 array that represents the bitset:
234 240
 	bitsetLen = %d
235 241
 )
236 242
     """ % (numCapabs, bitsetLen), file=output)

+ 7
- 2
irc/caps/defs.go View File

@@ -7,8 +7,8 @@ package caps
7 7
 
8 8
 const (
9 9
 	// number of recognized capabilities:
10
-	numCapabs = 30
11
-	// length of the uint64 array that represents the bitset:
10
+	numCapabs = 31
11
+	// length of the uint32 array that represents the bitset:
12 12
 	bitsetLen = 1
13 13
 )
14 14
 
@@ -117,6 +117,10 @@ const (
117 117
 	// https://ircv3.net/specs/extensions/setname.html
118 118
 	SetName Capability = iota
119 119
 
120
+	// StandardReplies is the IRCv3 capability named "standard-replies":
121
+	// https://github.com/ircv3/ircv3-specifications/pull/506
122
+	StandardReplies Capability = iota
123
+
120 124
 	// STS is the IRCv3 capability named "sts":
121 125
 	// https://ircv3.net/specs/extensions/sts.html
122 126
 	STS Capability = iota
@@ -163,6 +167,7 @@ var (
163 167
 		"sasl",
164 168
 		"server-time",
165 169
 		"setname",
170
+		"standard-replies",
166 171
 		"sts",
167 172
 		"userhost-in-names",
168 173
 		"znc.in/playback",

Loading…
Cancel
Save