forked from External/ergo
don't read globalCasemappingSetting in generateISupport
The isupport is always a pure function of the Config object, not of Server or any globals.
This commit is contained in:
parent
e10a5f07de
commit
3ff586e821
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue