Browse Source

Change casemapping name and advertisement to match new spec

tags/v0.10.3
Daniel Oaks 6 years ago
parent
commit
197ab520bf
2 changed files with 3 additions and 2 deletions
  1. 2
    1
      irc/server.go
  2. 1
    1
      irc/strings.go

+ 2
- 1
irc/server.go View File

@@ -183,7 +183,7 @@ func (server *Server) setISupport() {
183 183
 	// add RPL_ISUPPORT tokens
184 184
 	isupport := isupport.NewList()
185 185
 	isupport.Add("AWAYLEN", strconv.Itoa(server.limits.AwayLen))
186
-	isupport.Add("CASEMAPPING", casemappingName)
186
+	isupport.Add("CASEMAPPING", "ascii")
187 187
 	isupport.Add("CHANMODES", strings.Join([]string{Modes{BanMask, ExceptMask, InviteMask}.String(), "", Modes{UserLimit, Key}.String(), Modes{InviteOnly, Moderated, NoOutside, OpOnlyTopic, ChanRoleplaying, Secret}.String()}, ","))
188 188
 	isupport.Add("CHANNELLEN", strconv.Itoa(server.limits.ChannelLen))
189 189
 	isupport.Add("CHANTYPES", "#")
@@ -203,6 +203,7 @@ func (server *Server) setISupport() {
203 203
 	isupport.Add("STATUSMSG", "~&@%+")
204 204
 	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))
205 205
 	isupport.Add("TOPICLEN", strconv.Itoa(server.limits.TopicLen))
206
+	isupport.Add("UTF8MAPPING", casemappingName)
206 207
 
207 208
 	// account registration
208 209
 	if server.accountRegistration.Enabled {

+ 1
- 1
irc/strings.go View File

@@ -13,7 +13,7 @@ import (
13 13
 )
14 14
 
15 15
 const (
16
-	casemappingName = "rfc7613"
16
+	casemappingName = "rfc8265"
17 17
 )
18 18
 
19 19
 var (

Loading…
Cancel
Save