Handle casemapping on BouncerServ

This commit is contained in:
Hubert Hirtz 2021-04-30 09:32:48 +02:00 committed by Simon Ser
parent bc74478f80
commit e84fad3eda

View File

@ -1670,7 +1670,7 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
tags := copyClientTags(msg.Tags) tags := copyClientTags(msg.Tags)
for _, name := range strings.Split(targetsStr, ",") { for _, name := range strings.Split(targetsStr, ",") {
if name == serviceNick { if casemapASCII(name) == serviceNickCM {
if dc.caps["echo-message"] { if dc.caps["echo-message"] {
echoTags := tags.Copy() echoTags := tags.Copy()
echoTags["time"] = irc.TagValue(time.Now().UTC().Format(serverTimeLayout)) echoTags["time"] = irc.TagValue(time.Now().UTC().Format(serverTimeLayout))