From 3ff586e82133b1f88a8a257f83a8a36849c89178 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Tue, 14 Jan 2020 01:17:34 -0500 Subject: [PATCH] don't read globalCasemappingSetting in generateISupport The isupport is always a pure function of the Config object, not of Server or any globals. --- irc/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/server.go b/irc/server.go index f73d0d95..68a808cb 100644 --- a/irc/server.go +++ b/irc/server.go @@ -165,7 +165,7 @@ func (config *Config) generateISupport() (err error) { 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:", maxTargetsString, maxTargetsString, maxTargetsString)) isupport.Add("TOPICLEN", strconv.Itoa(config.Limits.TopicLen)) - if globalCasemappingSetting == CasemappingPRECIS { + if config.Server.Casemapping == CasemappingPRECIS { isupport.Add("UTF8MAPPING", precisUTF8MappingToken) }