Don't send user in prefix for echo messages

This is not very useful and confuses clients.
This commit is contained in:
Simon Ser 2021-11-15 23:53:25 +01:00
parent b9e06e498e
commit e44f4b2eee

View File

@ -2181,11 +2181,8 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
echoTags["account"] = irc.TagValue(uc.account) echoTags["account"] = irc.TagValue(uc.account)
} }
echoMsg := &irc.Message{ echoMsg := &irc.Message{
Tags: echoTags, Tags: echoTags,
Prefix: &irc.Prefix{ Prefix: &irc.Prefix{Name: uc.nick},
Name: uc.nick,
User: uc.username,
},
Command: msg.Command, Command: msg.Command,
Params: []string{upstreamName, text}, Params: []string{upstreamName, text},
} }