3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 03:49:27 +01:00

advertise SAFELIST (#2196)

LIST is implemented via blocking (*ResponseBuffer).Send, so it can never
exceed the sendq limit.
This commit is contained in:
Shivaram Lingamneni 2024-10-06 18:11:34 +02:00 committed by GitHub
parent 9577e87d9a
commit 726d997d07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1656,6 +1656,7 @@ func (config *Config) generateISupport() (err error) {
isupport.Add("RPCHAN", "E")
isupport.Add("RPUSER", "E")
}
isupport.Add("SAFELIST", "")
isupport.Add("STATUSMSG", "~&@%+")
isupport.Add("TARGMAX", fmt.Sprintf("NAMES:1,LIST:1,KICK:,WHOIS:1,USERHOST:10,PRIVMSG:%s,TAGMSG:%s,NOTICE:%s,MONITOR:%d", maxTargetsString, maxTargetsString, maxTargetsString, config.Limits.MonitorEntries))
isupport.Add("TOPICLEN", strconv.Itoa(config.Limits.TopicLen))