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.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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 = 33
  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. // ChannelRename is the draft IRCv3 capability named "draft/channel-rename":
  35. // https://ircv3.net/specs/extensions/channel-rename
  36. ChannelRename Capability = iota
  37. // Chathistory is the proposed IRCv3 capability named "draft/chathistory":
  38. // https://github.com/ircv3/ircv3-specifications/pull/393
  39. Chathistory Capability = iota
  40. // EventPlayback is the proposed IRCv3 capability named "draft/event-playback":
  41. // https://github.com/ircv3/ircv3-specifications/pull/362
  42. EventPlayback Capability = iota
  43. // Languages is the proposed IRCv3 capability named "draft/languages":
  44. // https://gist.github.com/DanielOaks/8126122f74b26012a3de37db80e4e0c6
  45. Languages Capability = iota
  46. // MessageRedaction is the proposed IRCv3 capability named "draft/message-redaction":
  47. // https://github.com/progval/ircv3-specifications/blob/redaction/extensions/message-redaction.md
  48. MessageRedaction Capability = iota
  49. // Multiline is the proposed IRCv3 capability named "draft/multiline":
  50. // https://github.com/ircv3/ircv3-specifications/pull/398
  51. Multiline Capability = iota
  52. // Persistence is the proposed IRCv3 capability named "draft/persistence":
  53. // https://github.com/ircv3/ircv3-specifications/pull/503
  54. Persistence Capability = iota
  55. // Preaway is the proposed IRCv3 capability named "draft/pre-away":
  56. // https://github.com/ircv3/ircv3-specifications/pull/514
  57. Preaway Capability = iota
  58. // ReadMarker is the draft IRCv3 capability named "draft/read-marker":
  59. // https://github.com/ircv3/ircv3-specifications/pull/489
  60. ReadMarker Capability = iota
  61. // Relaymsg is the proposed IRCv3 capability named "draft/relaymsg":
  62. // https://github.com/ircv3/ircv3-specifications/pull/417
  63. Relaymsg Capability = iota
  64. // EchoMessage is the IRCv3 capability named "echo-message":
  65. // https://ircv3.net/specs/extensions/echo-message-3.2.html
  66. EchoMessage Capability = iota
  67. // Nope is the Ergo vendor capability named "ergo.chat/nope":
  68. // https://ergo.chat/nope
  69. Nope Capability = iota
  70. // ExtendedJoin is the IRCv3 capability named "extended-join":
  71. // https://ircv3.net/specs/extensions/extended-join-3.1.html
  72. ExtendedJoin Capability = iota
  73. // ExtendedMonitor is the IRCv3 capability named "extended-monitor":
  74. // https://ircv3.net/specs/extensions/extended-monitor.html
  75. ExtendedMonitor Capability = iota
  76. // InviteNotify is the IRCv3 capability named "invite-notify":
  77. // https://ircv3.net/specs/extensions/invite-notify-3.2.html
  78. InviteNotify Capability = iota
  79. // LabeledResponse is the IRCv3 capability named "labeled-response":
  80. // https://ircv3.net/specs/extensions/labeled-response.html
  81. LabeledResponse Capability = iota
  82. // MessageTags is the IRCv3 capability named "message-tags":
  83. // https://ircv3.net/specs/extensions/message-tags.html
  84. MessageTags Capability = iota
  85. // MultiPrefix is the IRCv3 capability named "multi-prefix":
  86. // https://ircv3.net/specs/extensions/multi-prefix-3.1.html
  87. MultiPrefix Capability = iota
  88. // SASL is the IRCv3 capability named "sasl":
  89. // https://ircv3.net/specs/extensions/sasl-3.2.html
  90. SASL Capability = iota
  91. // ServerTime is the IRCv3 capability named "server-time":
  92. // https://ircv3.net/specs/extensions/server-time-3.2.html
  93. ServerTime Capability = iota
  94. // SetName is the IRCv3 capability named "setname":
  95. // https://ircv3.net/specs/extensions/setname.html
  96. SetName Capability = iota
  97. // StandardReplies is the IRCv3 capability named "standard-replies":
  98. // https://github.com/ircv3/ircv3-specifications/pull/506
  99. StandardReplies Capability = iota
  100. // STS is the IRCv3 capability named "sts":
  101. // https://ircv3.net/specs/extensions/sts.html
  102. STS Capability = iota
  103. // UserhostInNames is the IRCv3 capability named "userhost-in-names":
  104. // https://ircv3.net/specs/extensions/userhost-in-names-3.2.html
  105. UserhostInNames Capability = iota
  106. // ZNCPlayback is the ZNC vendor capability named "znc.in/playback":
  107. // https://wiki.znc.in/Playback
  108. ZNCPlayback Capability = iota
  109. // ZNCSelfMessage is the ZNC vendor capability named "znc.in/self-message":
  110. // https://wiki.znc.in/Query_buffers
  111. ZNCSelfMessage Capability = iota
  112. )
  113. // `capabilityNames[capab]` is the string name of the capability `capab`
  114. var (
  115. capabilityNames = [numCapabs]string{
  116. "account-notify",
  117. "account-tag",
  118. "away-notify",
  119. "batch",
  120. "cap-notify",
  121. "chghost",
  122. "draft/account-registration",
  123. "draft/channel-rename",
  124. "draft/chathistory",
  125. "draft/event-playback",
  126. "draft/languages",
  127. "draft/message-redaction",
  128. "draft/multiline",
  129. "draft/persistence",
  130. "draft/pre-away",
  131. "draft/read-marker",
  132. "draft/relaymsg",
  133. "echo-message",
  134. "ergo.chat/nope",
  135. "extended-join",
  136. "extended-monitor",
  137. "invite-notify",
  138. "labeled-response",
  139. "message-tags",
  140. "multi-prefix",
  141. "sasl",
  142. "server-time",
  143. "setname",
  144. "standard-replies",
  145. "sts",
  146. "userhost-in-names",
  147. "znc.in/playback",
  148. "znc.in/self-message",
  149. }
  150. )