downstream: use upstream user/host for echo message

This commit is contained in:
Simon Ser 2022-04-05 10:09:49 +02:00
parent 9513c28208
commit 793ac29571

View File

@ -2535,7 +2535,11 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc.
} }
echoMsg := &irc.Message{ echoMsg := &irc.Message{
Tags: echoTags, Tags: echoTags,
Prefix: &irc.Prefix{Name: uc.nick}, Prefix: &irc.Prefix{
Name: uc.nick,
User: uc.username,
Host: uc.hostname,
},
Command: msg.Command, Command: msg.Command,
Params: echoParams, Params: echoParams,
} }