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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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 = 28
  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. // 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. // ExtendedMonitor is the draft IRCv3 capability named "draft/extended-monitor":
  44. // https://github.com/ircv3/ircv3-specifications/pull/466
  45. ExtendedMonitor Capability = iota
  46. // Languages is the proposed IRCv3 capability named "draft/languages":
  47. // https://gist.github.com/DanielOaks/8126122f74b26012a3de37db80e4e0c6
  48. Languages 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. // Relaymsg is the proposed IRCv3 capability named "draft/relaymsg":
  53. // https://github.com/ircv3/ircv3-specifications/pull/417
  54. Relaymsg Capability = iota
  55. // EchoMessage is the IRCv3 capability named "echo-message":
  56. // https://ircv3.net/specs/extensions/echo-message-3.2.html
  57. EchoMessage Capability = iota
  58. // Nope is the Ergo vendor capability named "ergo.chat/nope":
  59. // https://ergo.chat/nope
  60. Nope Capability = iota
  61. // ExtendedJoin is the IRCv3 capability named "extended-join":
  62. // https://ircv3.net/specs/extensions/extended-join-3.1.html
  63. ExtendedJoin Capability = iota
  64. // InviteNotify is the IRCv3 capability named "invite-notify":
  65. // https://ircv3.net/specs/extensions/invite-notify-3.2.html
  66. InviteNotify Capability = iota
  67. // LabeledResponse is the IRCv3 capability named "labeled-response":
  68. // https://ircv3.net/specs/extensions/labeled-response.html
  69. LabeledResponse Capability = iota
  70. // MessageTags is the IRCv3 capability named "message-tags":
  71. // https://ircv3.net/specs/extensions/message-tags.html
  72. MessageTags Capability = iota
  73. // MultiPrefix is the IRCv3 capability named "multi-prefix":
  74. // https://ircv3.net/specs/extensions/multi-prefix-3.1.html
  75. MultiPrefix Capability = iota
  76. // SASL is the IRCv3 capability named "sasl":
  77. // https://ircv3.net/specs/extensions/sasl-3.2.html
  78. SASL Capability = iota
  79. // ServerTime is the IRCv3 capability named "server-time":
  80. // https://ircv3.net/specs/extensions/server-time-3.2.html
  81. ServerTime Capability = iota
  82. // SetName is the IRCv3 capability named "setname":
  83. // https://ircv3.net/specs/extensions/setname.html
  84. SetName Capability = iota
  85. // STS is the IRCv3 capability named "sts":
  86. // https://ircv3.net/specs/extensions/sts.html
  87. STS Capability = iota
  88. // UserhostInNames is the IRCv3 capability named "userhost-in-names":
  89. // https://ircv3.net/specs/extensions/userhost-in-names-3.2.html
  90. UserhostInNames Capability = iota
  91. // ZNCPlayback is the ZNC vendor capability named "znc.in/playback":
  92. // https://wiki.znc.in/Playback
  93. ZNCPlayback Capability = iota
  94. // ZNCSelfMessage is the ZNC vendor capability named "znc.in/self-message":
  95. // https://wiki.znc.in/Query_buffers
  96. ZNCSelfMessage Capability = iota
  97. )
  98. // `capabilityNames[capab]` is the string name of the capability `capab`
  99. var (
  100. capabilityNames = [numCapabs]string{
  101. "account-notify",
  102. "account-tag",
  103. "away-notify",
  104. "batch",
  105. "cap-notify",
  106. "chghost",
  107. "draft/account-registration",
  108. "draft/channel-rename",
  109. "draft/chathistory",
  110. "draft/event-playback",
  111. "draft/extended-monitor",
  112. "draft/languages",
  113. "draft/multiline",
  114. "draft/relaymsg",
  115. "echo-message",
  116. "ergo.chat/nope",
  117. "extended-join",
  118. "invite-notify",
  119. "labeled-response",
  120. "message-tags",
  121. "multi-prefix",
  122. "sasl",
  123. "server-time",
  124. "setname",
  125. "sts",
  126. "userhost-in-names",
  127. "znc.in/playback",
  128. "znc.in/self-message",
  129. }
  130. )