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 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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 = 27
  9. // length of the uint64 array that represents the bitset:
  10. bitsetLen = 1
  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. // ChannelRename is the draft IRCv3 capability named "draft/channel-rename":
  32. // https://ircv3.net/specs/extensions/channel-rename
  33. ChannelRename Capability = iota
  34. // Chathistory is the proposed IRCv3 capability named "draft/chathistory":
  35. // https://github.com/ircv3/ircv3-specifications/pull/393
  36. Chathistory Capability = iota
  37. // EventPlayback is the proposed IRCv3 capability named "draft/event-playback":
  38. // https://github.com/ircv3/ircv3-specifications/pull/362
  39. EventPlayback Capability = iota
  40. // Languages is the proposed IRCv3 capability named "draft/languages":
  41. // https://gist.github.com/DanielOaks/8126122f74b26012a3de37db80e4e0c6
  42. Languages Capability = iota
  43. // Multiline is the proposed IRCv3 capability named "draft/multiline":
  44. // https://github.com/ircv3/ircv3-specifications/pull/398
  45. Multiline Capability = iota
  46. // Register is the proposed IRCv3 capability named "draft/register":
  47. // https://gist.github.com/edk0/bf3b50fc219fd1bed1aa15d98bfb6495
  48. Register Capability = iota
  49. // Relaymsg is the proposed IRCv3 capability named "draft/relaymsg":
  50. // https://github.com/ircv3/ircv3-specifications/pull/417
  51. Relaymsg Capability = iota
  52. // EchoMessage is the IRCv3 capability named "echo-message":
  53. // https://ircv3.net/specs/extensions/echo-message-3.2.html
  54. EchoMessage Capability = iota
  55. // ExtendedJoin is the IRCv3 capability named "extended-join":
  56. // https://ircv3.net/specs/extensions/extended-join-3.1.html
  57. ExtendedJoin Capability = iota
  58. // InviteNotify is the IRCv3 capability named "invite-notify":
  59. // https://ircv3.net/specs/extensions/invite-notify-3.2.html
  60. InviteNotify Capability = iota
  61. // LabeledResponse is the IRCv3 capability named "labeled-response":
  62. // https://ircv3.net/specs/extensions/labeled-response.html
  63. LabeledResponse Capability = iota
  64. // MessageTags is the IRCv3 capability named "message-tags":
  65. // https://ircv3.net/specs/extensions/message-tags.html
  66. MessageTags Capability = iota
  67. // MultiPrefix is the IRCv3 capability named "multi-prefix":
  68. // https://ircv3.net/specs/extensions/multi-prefix-3.1.html
  69. MultiPrefix Capability = iota
  70. // Nope is the Oragono vendor capability named "oragono.io/nope":
  71. // https://oragono.io/nope
  72. Nope Capability = iota
  73. // SASL is the IRCv3 capability named "sasl":
  74. // https://ircv3.net/specs/extensions/sasl-3.2.html
  75. SASL Capability = iota
  76. // ServerTime is the IRCv3 capability named "server-time":
  77. // https://ircv3.net/specs/extensions/server-time-3.2.html
  78. ServerTime Capability = iota
  79. // SetName is the IRCv3 capability named "setname":
  80. // https://ircv3.net/specs/extensions/setname.html
  81. SetName Capability = iota
  82. // STS is the IRCv3 capability named "sts":
  83. // https://ircv3.net/specs/extensions/sts.html
  84. STS Capability = iota
  85. // UserhostInNames is the IRCv3 capability named "userhost-in-names":
  86. // https://ircv3.net/specs/extensions/userhost-in-names-3.2.html
  87. UserhostInNames Capability = iota
  88. // ZNCPlayback is the ZNC vendor capability named "znc.in/playback":
  89. // https://wiki.znc.in/Playback
  90. ZNCPlayback Capability = iota
  91. // ZNCSelfMessage is the ZNC vendor capability named "znc.in/self-message":
  92. // https://wiki.znc.in/Query_buffers
  93. ZNCSelfMessage Capability = iota
  94. )
  95. // `capabilityNames[capab]` is the string name of the capability `capab`
  96. var (
  97. capabilityNames = [numCapabs]string{
  98. "account-notify",
  99. "account-tag",
  100. "away-notify",
  101. "batch",
  102. "cap-notify",
  103. "chghost",
  104. "draft/channel-rename",
  105. "draft/chathistory",
  106. "draft/event-playback",
  107. "draft/languages",
  108. "draft/multiline",
  109. "draft/register",
  110. "draft/relaymsg",
  111. "echo-message",
  112. "extended-join",
  113. "invite-notify",
  114. "labeled-response",
  115. "message-tags",
  116. "multi-prefix",
  117. "oragono.io/nope",
  118. "sasl",
  119. "server-time",
  120. "setname",
  121. "sts",
  122. "userhost-in-names",
  123. "znc.in/playback",
  124. "znc.in/self-message",
  125. }
  126. )