|
@@ -13,10 +13,6 @@ const (
|
13
|
13
|
)
|
14
|
14
|
|
15
|
15
|
const (
|
16
|
|
- // Acc is the proposed IRCv3 capability named "draft/acc":
|
17
|
|
- // https://github.com/ircv3/ircv3-specifications/pull/276
|
18
|
|
- Acc Capability = iota
|
19
|
|
-
|
20
|
16
|
// AccountNotify is the IRCv3 capability named "account-notify":
|
21
|
17
|
// https://ircv3.net/specs/extensions/account-notify-3.1.html
|
22
|
18
|
AccountNotify Capability = iota
|
|
@@ -41,6 +37,34 @@ const (
|
41
|
37
|
// https://ircv3.net/specs/extensions/chghost-3.2.html
|
42
|
38
|
ChgHost Capability = iota
|
43
|
39
|
|
|
40
|
+ // Acc is the proposed IRCv3 capability named "draft/acc":
|
|
41
|
+ // https://github.com/ircv3/ircv3-specifications/pull/276
|
|
42
|
+ Acc Capability = iota
|
|
43
|
+
|
|
44
|
+ // EventPlayback is the Proposed IRCv3 capability named "draft/event-playback":
|
|
45
|
+ // https://github.com/ircv3/ircv3-specifications/pull/362
|
|
46
|
+ EventPlayback Capability = iota
|
|
47
|
+
|
|
48
|
+ // LabeledResponse is the draft IRCv3 capability named "draft/labeled-response-0.2":
|
|
49
|
+ // https://ircv3.net/specs/extensions/labeled-response.html
|
|
50
|
+ LabeledResponse Capability = iota
|
|
51
|
+
|
|
52
|
+ // Languages is the proposed IRCv3 capability named "draft/languages":
|
|
53
|
+ // https://gist.github.com/DanielOaks/8126122f74b26012a3de37db80e4e0c6
|
|
54
|
+ Languages Capability = iota
|
|
55
|
+
|
|
56
|
+ // Rename is the proposed IRCv3 capability named "draft/rename":
|
|
57
|
+ // https://github.com/SaberUK/ircv3-specifications/blob/rename/extensions/rename.md
|
|
58
|
+ Rename Capability = iota
|
|
59
|
+
|
|
60
|
+ // Resume is the proposed IRCv3 capability named "draft/resume-0.5":
|
|
61
|
+ // https://github.com/DanielOaks/ircv3-specifications/blob/master+resume/extensions/resume.md
|
|
62
|
+ Resume Capability = iota
|
|
63
|
+
|
|
64
|
+ // SetName is the proposed IRCv3 capability named "draft/setname":
|
|
65
|
+ // https://github.com/ircv3/ircv3-specifications/pull/361
|
|
66
|
+ SetName Capability = iota
|
|
67
|
+
|
44
|
68
|
// EchoMessage is the IRCv3 capability named "echo-message":
|
45
|
69
|
// https://ircv3.net/specs/extensions/echo-message-3.2.html
|
46
|
70
|
EchoMessage Capability = iota
|
|
@@ -53,18 +77,6 @@ const (
|
53
|
77
|
// https://ircv3.net/specs/extensions/invite-notify-3.2.html
|
54
|
78
|
InviteNotify Capability = iota
|
55
|
79
|
|
56
|
|
- // LabeledResponse is the draft IRCv3 capability named "draft/labeled-response-0.2":
|
57
|
|
- // https://ircv3.net/specs/extensions/labeled-response.html
|
58
|
|
- LabeledResponse Capability = iota
|
59
|
|
-
|
60
|
|
- // Languages is the proposed IRCv3 capability named "draft/languages":
|
61
|
|
- // https://gist.github.com/DanielOaks/8126122f74b26012a3de37db80e4e0c6
|
62
|
|
- Languages Capability = iota
|
63
|
|
-
|
64
|
|
- // MaxLine is the Oragono-specific capability named "oragono.io/maxline-2":
|
65
|
|
- // https://oragono.io/maxline-2
|
66
|
|
- MaxLine Capability = iota
|
67
|
|
-
|
68
|
80
|
// MessageTags is the IRCv3 capability named "message-tags":
|
69
|
81
|
// https://ircv3.net/specs/extensions/message-tags.html
|
70
|
82
|
MessageTags Capability = iota
|
|
@@ -73,13 +85,17 @@ const (
|
73
|
85
|
// https://ircv3.net/specs/extensions/multi-prefix-3.1.html
|
74
|
86
|
MultiPrefix Capability = iota
|
75
|
87
|
|
76
|
|
- // Rename is the proposed IRCv3 capability named "draft/rename":
|
77
|
|
- // https://github.com/SaberUK/ircv3-specifications/blob/rename/extensions/rename.md
|
78
|
|
- Rename Capability = iota
|
|
88
|
+ // Bouncer is the Oragono-specific capability named "oragono.io/bnc":
|
|
89
|
+ // https://oragono.io/bnc
|
|
90
|
+ Bouncer Capability = iota
|
79
|
91
|
|
80
|
|
- // Resume is the proposed IRCv3 capability named "draft/resume-0.5":
|
81
|
|
- // https://github.com/DanielOaks/ircv3-specifications/blob/master+resume/extensions/resume.md
|
82
|
|
- Resume Capability = iota
|
|
92
|
+ // MaxLine is the Oragono-specific capability named "oragono.io/maxline-2":
|
|
93
|
+ // https://oragono.io/maxline-2
|
|
94
|
+ MaxLine Capability = iota
|
|
95
|
+
|
|
96
|
+ // Nope is the Oragono vendor capability named "oragono.io/nope":
|
|
97
|
+ // https://oragono.io/nope
|
|
98
|
+ Nope Capability = iota
|
83
|
99
|
|
84
|
100
|
// SASL is the IRCv3 capability named "sasl":
|
85
|
101
|
// https://ircv3.net/specs/extensions/sasl-3.2.html
|
|
@@ -89,10 +105,6 @@ const (
|
89
|
105
|
// https://ircv3.net/specs/extensions/server-time-3.2.html
|
90
|
106
|
ServerTime Capability = iota
|
91
|
107
|
|
92
|
|
- // SetName is the proposed IRCv3 capability named "draft/setname":
|
93
|
|
- // https://github.com/ircv3/ircv3-specifications/pull/361
|
94
|
|
- SetName Capability = iota
|
95
|
|
-
|
96
|
108
|
// STS is the IRCv3 capability named "sts":
|
97
|
109
|
// https://ircv3.net/specs/extensions/sts.html
|
98
|
110
|
STS Capability = iota
|
|
@@ -101,56 +113,44 @@ const (
|
101
|
113
|
// https://ircv3.net/specs/extensions/userhost-in-names-3.2.html
|
102
|
114
|
UserhostInNames Capability = iota
|
103
|
115
|
|
104
|
|
- // Bouncer is the Oragono-specific capability named "oragono.io/bnc":
|
105
|
|
- // https://oragono.io/bnc
|
106
|
|
- Bouncer Capability = iota
|
107
|
|
-
|
108
|
|
- // ZNCSelfMessage is the ZNC vendor capability named "znc.in/self-message":
|
109
|
|
- // https://wiki.znc.in/Query_buffers
|
110
|
|
- ZNCSelfMessage Capability = iota
|
111
|
|
-
|
112
|
|
- // EventPlayback is the Proposed IRCv3 capability named "draft/event-playback":
|
113
|
|
- // https://github.com/ircv3/ircv3-specifications/pull/362
|
114
|
|
- EventPlayback Capability = iota
|
115
|
|
-
|
116
|
116
|
// ZNCPlayback is the ZNC vendor capability named "znc.in/playback":
|
117
|
117
|
// https://wiki.znc.in/Playback
|
118
|
118
|
ZNCPlayback Capability = iota
|
119
|
119
|
|
120
|
|
- // Nope is the Oragono vendor capability named "oragono.io/nope":
|
121
|
|
- // https://oragono.io/nope
|
122
|
|
- Nope Capability = iota
|
|
120
|
+ // ZNCSelfMessage is the ZNC vendor capability named "znc.in/self-message":
|
|
121
|
+ // https://wiki.znc.in/Query_buffers
|
|
122
|
+ ZNCSelfMessage Capability = iota
|
123
|
123
|
)
|
124
|
124
|
|
125
|
125
|
// `capabilityNames[capab]` is the string name of the capability `capab`
|
126
|
126
|
var (
|
127
|
127
|
capabilityNames = [numCapabs]string{
|
128
|
|
- "draft/acc",
|
129
|
128
|
"account-notify",
|
130
|
129
|
"account-tag",
|
131
|
130
|
"away-notify",
|
132
|
131
|
"batch",
|
133
|
132
|
"cap-notify",
|
134
|
133
|
"chghost",
|
|
134
|
+ "draft/acc",
|
|
135
|
+ "draft/event-playback",
|
|
136
|
+ "draft/labeled-response-0.2",
|
|
137
|
+ "draft/languages",
|
|
138
|
+ "draft/rename",
|
|
139
|
+ "draft/resume-0.5",
|
|
140
|
+ "draft/setname",
|
135
|
141
|
"echo-message",
|
136
|
142
|
"extended-join",
|
137
|
143
|
"invite-notify",
|
138
|
|
- "draft/labeled-response-0.2",
|
139
|
|
- "draft/languages",
|
140
|
|
- "oragono.io/maxline-2",
|
141
|
144
|
"message-tags",
|
142
|
145
|
"multi-prefix",
|
143
|
|
- "draft/rename",
|
144
|
|
- "draft/resume-0.5",
|
|
146
|
+ "oragono.io/bnc",
|
|
147
|
+ "oragono.io/maxline-2",
|
|
148
|
+ "oragono.io/nope",
|
145
|
149
|
"sasl",
|
146
|
150
|
"server-time",
|
147
|
|
- "draft/setname",
|
148
|
151
|
"sts",
|
149
|
152
|
"userhost-in-names",
|
150
|
|
- "oragono.io/bnc",
|
151
|
|
- "znc.in/self-message",
|
152
|
|
- "draft/event-playback",
|
153
|
153
|
"znc.in/playback",
|
154
|
|
- "oragono.io/nope",
|
|
154
|
+ "znc.in/self-message",
|
155
|
155
|
}
|
156
|
156
|
)
|