3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-25 21:39:25 +01:00

Merge pull request #1550 from slingamn/history_cap_disable

fix #1549
This commit is contained in:
Shivaram Lingamneni 2021-02-21 13:28:43 -05:00 committed by GitHub
commit 56bef19505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1383,6 +1383,9 @@ func LoadConfig(filename string) (config *Config, err error) {
if !config.History.Enabled { if !config.History.Enabled {
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.Server.supportedCaps.Disable(caps.ZNCPlayback)
} }
if !config.History.Enabled || !config.History.Persistent.Enabled { if !config.History.Enabled || !config.History.Persistent.Enabled {