downstream: use upstream user/host for echo message
This commit is contained in:
parent
9513c28208
commit
793ac29571
@ -2534,8 +2534,12 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc.
|
|||||||
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{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,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user