浏览代码

fix #1549

If history is disabled, disable the history CAPs
tags/v2.6.0-rc1
Shivaram Lingamneni 3 年前
父节点
当前提交
9e25a3027a
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      irc/config.go

+ 3
- 0
irc/config.go 查看文件

@@ -1383,6 +1383,9 @@ func LoadConfig(filename string) (config *Config, err error) {
1383 1383
 	if !config.History.Enabled {
1384 1384
 		config.History.ChannelLength = 0
1385 1385
 		config.History.ClientLength = 0
1386
+		config.Server.supportedCaps.Disable(caps.Chathistory)
1387
+		config.Server.supportedCaps.Disable(caps.EventPlayback)
1388
+		config.Server.supportedCaps.Disable(caps.ZNCPlayback)
1386 1389
 	}
1387 1390
 
1388 1391
 	if !config.History.Enabled || !config.History.Persistent.Enabled {

正在加载...
取消
保存