3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-15 00:19:29 +01:00

Merge pull request #2009 from slingamn/both_005s

re-add draft/CHATHISTORY 005
This commit is contained in:
Shivaram Lingamneni 2022-12-01 22:43:32 -08:00 committed by GitHub
commit f665525735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1590,6 +1590,8 @@ func (config *Config) generateISupport() (err error) {
isupport.Add("CHANMODES", chanmodesToken) isupport.Add("CHANMODES", chanmodesToken)
if config.History.Enabled && config.History.ChathistoryMax > 0 { if config.History.Enabled && config.History.ChathistoryMax > 0 {
isupport.Add("CHATHISTORY", strconv.Itoa(config.History.ChathistoryMax)) isupport.Add("CHATHISTORY", strconv.Itoa(config.History.ChathistoryMax))
// Kiwi expects this legacy token name:
isupport.Add("draft/CHATHISTORY", strconv.Itoa(config.History.ChathistoryMax))
} }
isupport.Add("CHANNELLEN", strconv.Itoa(config.Limits.ChannelLen)) isupport.Add("CHANNELLEN", strconv.Itoa(config.Limits.ChannelLen))
isupport.Add("CHANTYPES", chanTypes) isupport.Add("CHANTYPES", chanTypes)