3
0
mirror of https://github.com/ergochat/ergo.git synced 2026-03-02 13:28:08 +01:00

support draft/ACCOUNTREQUIRED in 005 (#2341)

https://github.com/ircv3/ircv3-specifications/pull/585
This commit is contained in:
Shivaram Lingamneni 2026-03-02 01:10:58 -08:00 committed by GitHub
parent 76e8e61705
commit 2e6fd75525
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1846,6 +1846,10 @@ func (config *Config) generateISupport() (err error) {
}
isupport.Add("WHOX", "")
if config.Accounts.RequireSasl.Enabled {
isupport.Add("draft/ACCOUNTREQUIRED", "")
}
for key, value := range config.Server.AdditionalISupport {
if !isupport.Contains(key) {
isupport.Add(key, value)