3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-23 03:02:48 +01:00

Merge pull request #2008 from slingamn/chathistory_isupport

fix CHATHISTORY 005 token name
This commit is contained in:
Shivaram Lingamneni 2022-11-30 01:16:28 -08:00 committed by GitHub
commit a5983a1bd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1589,7 +1589,7 @@ func (config *Config) generateISupport() (err error) {
isupport.Add("CHANLIMIT", fmt.Sprintf("%s:%d", chanTypes, config.Channels.MaxChannelsPerClient))
isupport.Add("CHANMODES", chanmodesToken)
if config.History.Enabled && config.History.ChathistoryMax > 0 {
isupport.Add("draft/CHATHISTORY", strconv.Itoa(config.History.ChathistoryMax))
isupport.Add("CHATHISTORY", strconv.Itoa(config.History.ChathistoryMax))
}
isupport.Add("CHANNELLEN", strconv.Itoa(config.Limits.ChannelLen))
isupport.Add("CHANTYPES", chanTypes)

@ -1 +1 @@
Subproject commit dbdadec6770a47e8a70578b8b7d8b61879bd9cb7
Subproject commit 35d342a478f8ddc7d6b9ba7b2e55f769c60478d1