From f6f25039b7c2d4186cb5402a718dfb8955356762 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 13 Aug 2021 19:42:00 +0200 Subject: [PATCH] Advertise support for multiple KICK targets This is already implemented, but TARGMAX=KICK:1 says it isn't. Instead, let's advertise that indefinitely many targets are allowed. Refs: * https://defs.ircdocs.horse/defs/isupport.html#targmax * https://github.com/ircdocs/modern-irc/pull/112 --- irc/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/config.go b/irc/config.go index 6075ca06..b8558727 100644 --- a/irc/config.go +++ b/irc/config.go @@ -1588,7 +1588,7 @@ func (config *Config) generateISupport() (err error) { isupport.Add("RPUSER", "E") } isupport.Add("STATUSMSG", "~&@%+") - isupport.Add("TARGMAX", fmt.Sprintf("NAMES:1,LIST:1,KICK:1,WHOIS:1,USERHOST:10,PRIVMSG:%s,TAGMSG:%s,NOTICE:%s,MONITOR:%d", maxTargetsString, maxTargetsString, maxTargetsString, config.Limits.MonitorEntries)) + 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)) if config.Server.Casemapping == CasemappingPRECIS { isupport.Add("UTF8MAPPING", precisUTF8MappingToken)