From 9e25a3027a3dab61beee50a55fe8a4746010ab6a Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 21 Feb 2021 13:25:22 -0500 Subject: [PATCH] fix #1549 If history is disabled, disable the history CAPs --- irc/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/irc/config.go b/irc/config.go index 94c882d9..fc87c059 100644 --- a/irc/config.go +++ b/irc/config.go @@ -1383,6 +1383,9 @@ func LoadConfig(filename string) (config *Config, err error) { if !config.History.Enabled { config.History.ChannelLength = 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 {