Skip to content

Commit

Permalink
re-add draft/CHATHISTORY 005
Browse files Browse the repository at this point in the history
Kiwi expects it due to kiwiirc/kiwiirc#1244 , but
the corresponding spec change only altered the cap name, not the 005 name.
  • Loading branch information
slingamn committed Jun 13, 2023
1 parent b60c4da commit fb84910
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions irc/config.go
Expand Up @@ -1559,6 +1559,8 @@ func (config *Config) generateISupport() (err error) {
isupport.Add("CHANMODES", chanmodesToken)
if config.History.Enabled && config.History.ChathistoryMax > 0 {
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("CHANTYPES", chanTypes)
Expand Down

0 comments on commit fb84910

Please sign in to comment.