Caps: update with removals

This commit is contained in:
kayos@tcp.direct 2022-05-01 17:27:06 -07:00
parent 81093e844d
commit 2b87f70233
Signed by: kayos
GPG Key ID: 4B841471B4BEE979
3 changed files with 1 additions and 38 deletions

View File

@ -135,36 +135,12 @@ CAPDEFS = [
url="https://ircv3.net/specs/extensions/userhost-in-names-3.2.html", url="https://ircv3.net/specs/extensions/userhost-in-names-3.2.html",
standard="IRCv3", standard="IRCv3",
), ),
CapDef(
identifier="ZNCSelfMessage",
name="znc.in/self-message",
url="https://wiki.znc.in/Query_buffers",
standard="ZNC vendor",
),
CapDef(
identifier="EventPlayback",
name="draft/event-playback",
url="https://github.com/ircv3/ircv3-specifications/pull/362",
standard="proposed IRCv3",
),
CapDef(
identifier="ZNCPlayback",
name="znc.in/playback",
url="https://wiki.znc.in/Playback",
standard="ZNC vendor",
),
CapDef( CapDef(
identifier="Multiline", identifier="Multiline",
name="draft/multiline", name="draft/multiline",
url="https://github.com/ircv3/ircv3-specifications/pull/398", url="https://github.com/ircv3/ircv3-specifications/pull/398",
standard="proposed IRCv3", standard="proposed IRCv3",
), ),
CapDef(
identifier="Chathistory",
name="draft/chathistory",
url="https://github.com/ircv3/ircv3-specifications/pull/393",
standard="proposed IRCv3",
),
CapDef( CapDef(
identifier="AccountRegistration", identifier="AccountRegistration",
name="draft/account-registration", name="draft/account-registration",

View File

@ -7,7 +7,7 @@ package caps
const ( const (
// number of recognized capabilities: // number of recognized capabilities:
numCapabs = 27 numCapabs = 23
// length of the uint64 array that represents the bitset: // length of the uint64 array that represents the bitset:
bitsetLen = 1 bitsetLen = 1
) )
@ -45,14 +45,6 @@ const (
// https://ircv3.net/specs/extensions/channel-rename // https://ircv3.net/specs/extensions/channel-rename
ChannelRename Capability = iota ChannelRename Capability = iota
// Chathistory is the proposed IRCv3 capability named "draft/chathistory":
// https://github.com/ircv3/ircv3-specifications/pull/393
Chathistory Capability = iota
// EventPlayback is the proposed IRCv3 capability named "draft/event-playback":
// https://github.com/ircv3/ircv3-specifications/pull/362
EventPlayback Capability = iota
// ExtendedMonitor is the draft IRCv3 capability named "draft/extended-monitor": // ExtendedMonitor is the draft IRCv3 capability named "draft/extended-monitor":
// https://github.com/ircv3/ircv3-specifications/pull/466 // https://github.com/ircv3/ircv3-specifications/pull/466
ExtendedMonitor Capability = iota ExtendedMonitor Capability = iota
@ -125,8 +117,6 @@ var (
"chghost", "chghost",
"draft/account-registration", "draft/account-registration",
"draft/channel-rename", "draft/channel-rename",
"draft/chathistory",
"draft/event-playback",
"draft/extended-monitor", "draft/extended-monitor",
"draft/languages", "draft/languages",
"draft/multiline", "draft/multiline",

View File

@ -603,7 +603,6 @@ type Config struct {
ClientLength int `yaml:"client-length"` ClientLength int `yaml:"client-length"`
AutoresizeWindow custime.Duration `yaml:"autoresize-window"` AutoresizeWindow custime.Duration `yaml:"autoresize-window"`
AutoreplayOnJoin int `yaml:"autoreplay-on-join"` AutoreplayOnJoin int `yaml:"autoreplay-on-join"`
ChathistoryMax int `yaml:"chathistory-maxmessages"`
ZNCMax int `yaml:"znc-maxmessages"` ZNCMax int `yaml:"znc-maxmessages"`
Restrictions struct { Restrictions struct {
ExpireTime custime.Duration `yaml:"expire-time"` ExpireTime custime.Duration `yaml:"expire-time"`
@ -1406,8 +1405,6 @@ func LoadConfig(filename string) (config *Config, err error) {
// of this detail // of this detail
config.History.ChannelLength = 0 config.History.ChannelLength = 0
config.History.ClientLength = 0 config.History.ClientLength = 0
config.Server.supportedCaps.Disable(caps.Chathistory)
config.Server.supportedCaps.Disable(caps.EventPlayback)
config.History.Persistent.Enabled = false config.History.Persistent.Enabled = false
config.History.Persistent.UnregisteredChannels = false config.History.Persistent.UnregisteredChannels = false
config.History.Persistent.RegisteredChannels = PersistentDisabled config.History.Persistent.RegisteredChannels = PersistentDisabled