You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

defs.go 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. package caps
  2. /*
  3. WARNING: this file is autogenerated by `make capdefs`
  4. DO NOT EDIT MANUALLY.
  5. */
  6. const (
  7. // number of recognized capabilities:
  8. numCapabs = 35
  9. // length of the uint32 array that represents the bitset:
  10. bitsetLen = 2
  11. )
  12. const (
  13. // AccountNotify is the IRCv3 capability named "account-notify":
  14. // https://ircv3.net/specs/extensions/account-notify-3.1.html
  15. AccountNotify Capability = iota
  16. // AccountTag is the IRCv3 capability named "account-tag":
  17. // https://ircv3.net/specs/extensions/account-tag-3.2.html
  18. AccountTag Capability = iota
  19. // AwayNotify is the IRCv3 capability named "away-notify":
  20. // https://ircv3.net/specs/extensions/away-notify-3.1.html
  21. AwayNotify Capability = iota
  22. // Batch is the IRCv3 capability named "batch":
  23. // https://ircv3.net/specs/extensions/batch-3.2.html
  24. Batch Capability = iota
  25. // CapNotify is the IRCv3 capability named "cap-notify":
  26. // https://ircv3.net/specs/extensions/cap-notify-3.2.html
  27. CapNotify Capability = iota
  28. // ChgHost is the IRCv3 capability named "chghost":
  29. // https://ircv3.net/specs/extensions/chghost-3.2.html
  30. ChgHost Capability = iota
  31. // AccountRegistration is the draft IRCv3 capability named "draft/account-registration":
  32. // https://github.com/ircv3/ircv3-specifications/pull/435
  33. AccountRegistration Capability = iota
  34. // Bearer is the proposed IRCv3 capability named "draft/bearer":
  35. // https://gist.github.com/slingamn/4fabc7a3d5f335da7bb313a7f0648f37
  36. Bearer Capability = iota
  37. // ChannelRename is the draft IRCv3 capability named "draft/channel-rename":
  38. // https://ircv3.net/specs/extensions/channel-rename
  39. ChannelRename Capability = iota
  40. // Chathistory is the proposed IRCv3 capability named "draft/chathistory":
  41. // https://github.com/ircv3/ircv3-specifications/pull/393
  42. Chathistory Capability = iota
  43. // EventPlayback is the proposed IRCv3 capability named "draft/event-playback":
  44. // https://github.com/ircv3/ircv3-specifications/pull/362
  45. EventPlayback Capability = iota
  46. // Languages is the proposed IRCv3 capability named "draft/languages":
  47. // https://gist.github.com/DanielOaks/8126122f74b26012a3de37db80e4e0c6
  48. Languages Capability = iota
  49. // MessageRedaction is the proposed IRCv3 capability named "draft/message-redaction":
  50. // https://github.com/progval/ircv3-specifications/blob/redaction/extensions/message-redaction.md
  51. MessageRedaction Capability = iota
  52. // Multiline is the proposed IRCv3 capability named "draft/multiline":
  53. // https://github.com/ircv3/ircv3-specifications/pull/398
  54. Multiline Capability = iota
  55. // NoImplicitNames is the proposed IRCv3 capability named "draft/no-implicit-names":
  56. // https://github.com/ircv3/ircv3-specifications/pull/527
  57. NoImplicitNames Capability = iota
  58. // Persistence is the proposed IRCv3 capability named "draft/persistence":
  59. // https://github.com/ircv3/ircv3-specifications/pull/503
  60. Persistence Capability = iota
  61. // Preaway is the proposed IRCv3 capability named "draft/pre-away":
  62. // https://github.com/ircv3/ircv3-specifications/pull/514
  63. Preaway Capability = iota
  64. // ReadMarker is the draft IRCv3 capability named "draft/read-marker":
  65. // https://github.com/ircv3/ircv3-specifications/pull/489
  66. ReadMarker Capability = iota
  67. // Relaymsg is the proposed IRCv3 capability named "draft/relaymsg":
  68. // https://github.com/ircv3/ircv3-specifications/pull/417
  69. Relaymsg Capability = iota
  70. // EchoMessage is the IRCv3 capability named "echo-message":
  71. // https://ircv3.net/specs/extensions/echo-message-3.2.html
  72. EchoMessage Capability = iota
  73. // Nope is the Ergo vendor capability named "ergo.chat/nope":
  74. // https://ergo.chat/nope
  75. Nope Capability = iota
  76. // ExtendedJoin is the IRCv3 capability named "extended-join":
  77. // https://ircv3.net/specs/extensions/extended-join-3.1.html
  78. ExtendedJoin Capability = iota
  79. // ExtendedMonitor is the IRCv3 capability named "extended-monitor":
  80. // https://ircv3.net/specs/extensions/extended-monitor.html
  81. ExtendedMonitor Capability = iota
  82. // InviteNotify is the IRCv3 capability named "invite-notify":
  83. // https://ircv3.net/specs/extensions/invite-notify-3.2.html
  84. InviteNotify Capability = iota
  85. // LabeledResponse is the IRCv3 capability named "labeled-response":
  86. // https://ircv3.net/specs/extensions/labeled-response.html
  87. LabeledResponse Capability = iota
  88. // MessageTags is the IRCv3 capability named "message-tags":
  89. // https://ircv3.net/specs/extensions/message-tags.html
  90. MessageTags Capability = iota
  91. // MultiPrefix is the IRCv3 capability named "multi-prefix":
  92. // https://ircv3.net/specs/extensions/multi-prefix-3.1.html
  93. MultiPrefix Capability = iota
  94. // SASL is the IRCv3 capability named "sasl":
  95. // https://ircv3.net/specs/extensions/sasl-3.2.html
  96. SASL Capability = iota
  97. // ServerTime is the IRCv3 capability named "server-time":
  98. // https://ircv3.net/specs/extensions/server-time-3.2.html
  99. ServerTime Capability = iota
  100. // SetName is the IRCv3 capability named "setname":
  101. // https://ircv3.net/specs/extensions/setname.html
  102. SetName Capability = iota
  103. // StandardReplies is the IRCv3 capability named "standard-replies":
  104. // https://github.com/ircv3/ircv3-specifications/pull/506
  105. StandardReplies Capability = iota
  106. // STS is the IRCv3 capability named "sts":
  107. // https://ircv3.net/specs/extensions/sts.html
  108. STS Capability = iota
  109. // UserhostInNames is the IRCv3 capability named "userhost-in-names":
  110. // https://ircv3.net/specs/extensions/userhost-in-names-3.2.html
  111. UserhostInNames Capability = iota
  112. // ZNCPlayback is the ZNC vendor capability named "znc.in/playback":
  113. // https://wiki.znc.in/Playback
  114. ZNCPlayback Capability = iota
  115. // ZNCSelfMessage is the ZNC vendor capability named "znc.in/self-message":
  116. // https://wiki.znc.in/Query_buffers
  117. ZNCSelfMessage Capability = iota
  118. )
  119. // `capabilityNames[capab]` is the string name of the capability `capab`
  120. var (
  121. capabilityNames = [numCapabs]string{
  122. "account-notify",
  123. "account-tag",
  124. "away-notify",
  125. "batch",
  126. "cap-notify",
  127. "chghost",
  128. "draft/account-registration",
  129. "draft/bearer",
  130. "draft/channel-rename",
  131. "draft/chathistory",
  132. "draft/event-playback",
  133. "draft/languages",
  134. "draft/message-redaction",
  135. "draft/multiline",
  136. "draft/no-implicit-names",
  137. "draft/persistence",
  138. "draft/pre-away",
  139. "draft/read-marker",
  140. "draft/relaymsg",
  141. "echo-message",
  142. "ergo.chat/nope",
  143. "extended-join",
  144. "extended-monitor",
  145. "invite-notify",
  146. "labeled-response",
  147. "message-tags",
  148. "multi-prefix",
  149. "sasl",
  150. "server-time",
  151. "setname",
  152. "standard-replies",
  153. "sts",
  154. "userhost-in-names",
  155. "znc.in/playback",
  156. "znc.in/self-message",
  157. }
  158. )