Pass-through ISUPPORT CASEMAPPING
This commit is contained in:
parent
637b989a47
commit
3da6c23ad4
@ -259,6 +259,7 @@ var needAllDownstreamCaps = map[string]string{
|
|||||||
var passthroughIsupport = map[string]bool{
|
var passthroughIsupport = map[string]bool{
|
||||||
"AWAYLEN": true,
|
"AWAYLEN": true,
|
||||||
"BOT": true,
|
"BOT": true,
|
||||||
|
"CASEMAPPING": true,
|
||||||
"CHANLIMIT": true,
|
"CHANLIMIT": true,
|
||||||
"CHANMODES": true,
|
"CHANMODES": true,
|
||||||
"CHANNELLEN": true,
|
"CHANNELLEN": true,
|
||||||
@ -1447,14 +1448,11 @@ func (dc *downstreamConn) welcome(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
dc.nickCM = casemapASCII(dc.nick)
|
dc.nickCM = casemapASCII(dc.nick)
|
||||||
|
|
||||||
isupport := []string{
|
var isupport []string
|
||||||
"CASEMAPPING=ascii",
|
|
||||||
}
|
|
||||||
|
|
||||||
if dc.network != nil {
|
if dc.network != nil {
|
||||||
isupport = append(isupport, fmt.Sprintf("BOUNCER_NETID=%v", dc.network.ID))
|
isupport = append(isupport, fmt.Sprintf("BOUNCER_NETID=%v", dc.network.ID))
|
||||||
} else {
|
} else {
|
||||||
isupport = append(isupport, "BOT=B")
|
isupport = append(isupport, "BOT=B", "CASEMAPPING=ascii")
|
||||||
}
|
}
|
||||||
if title := dc.srv.Config().Title; dc.network == nil && title != "" {
|
if title := dc.srv.Config().Title; dc.network == nil && title != "" {
|
||||||
isupport = append(isupport, "NETWORK="+title)
|
isupport = append(isupport, "NETWORK="+title)
|
||||||
|
Loading…
Reference in New Issue
Block a user