Allow publishing arbitrary ISUPPORT via the config file
This commit is contained in:
Shivaram Lingamneni 2025-04-06 01:41:03 -04:00 committed by GitHub
parent a6df370bd9
commit 98e04c10a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 49 additions and 4 deletions

View file

@ -609,6 +609,7 @@ type Config struct {
OverrideServicesHostname string `yaml:"override-services-hostname"`
MaxLineLen int `yaml:"max-line-len"`
SuppressLusers bool `yaml:"suppress-lusers"`
AdditionalISupport map[string]string `yaml:"additional-isupport"`
CommandAliases map[string]string `yaml:"command-aliases"`
}
@ -1778,6 +1779,12 @@ func (config *Config) generateISupport() (err error) {
}
isupport.Add("WHOX", "")
for key, value := range config.Server.AdditionalISupport {
if !isupport.Contains(key) {
isupport.Add(key, value)
}
}
err = isupport.RegenerateCachedReply()
return
}