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
         url="https://github.com/ircv3/ircv3-specifications/pull/503",
195
         url="https://github.com/ircv3/ircv3-specifications/pull/503",
196
         standard="proposed IRCv3",
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
 def validate_defs():
206
 def validate_defs():
230
 const (
236
 const (
231
 	// number of recognized capabilities:
237
 	// number of recognized capabilities:
232
 	numCapabs = %d
238
 	numCapabs = %d
233
-	// length of the uint64 array that represents the bitset:
239
+	// length of the uint32 array that represents the bitset:
234
 	bitsetLen = %d
240
 	bitsetLen = %d
235
 )
241
 )
236
     """ % (numCapabs, bitsetLen), file=output)
242
     """ % (numCapabs, bitsetLen), file=output)

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

7
 
7
 
8
 const (
8
 const (
9
 	// number of recognized capabilities:
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
 	bitsetLen = 1
12
 	bitsetLen = 1
13
 )
13
 )
14
 
14
 
117
 	// https://ircv3.net/specs/extensions/setname.html
117
 	// https://ircv3.net/specs/extensions/setname.html
118
 	SetName Capability = iota
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
 	// STS is the IRCv3 capability named "sts":
124
 	// STS is the IRCv3 capability named "sts":
121
 	// https://ircv3.net/specs/extensions/sts.html
125
 	// https://ircv3.net/specs/extensions/sts.html
122
 	STS Capability = iota
126
 	STS Capability = iota
163
 		"sasl",
167
 		"sasl",
164
 		"server-time",
168
 		"server-time",
165
 		"setname",
169
 		"setname",
170
+		"standard-replies",
166
 		"sts",
171
 		"sts",
167
 		"userhost-in-names",
172
 		"userhost-in-names",
168
 		"znc.in/playback",
173
 		"znc.in/playback",

Loading…
Cancel
Save