From 793ac29571bcaca88891e6e6b6ccbf12b77acd26 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 5 Apr 2022 10:09:49 +0200 Subject: [PATCH] downstream: use upstream user/host for echo message --- downstream.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/downstream.go b/downstream.go index c825667..d90de79 100644 --- a/downstream.go +++ b/downstream.go @@ -2534,8 +2534,12 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc. echoTags["account"] = irc.TagValue(uc.account) } echoMsg := &irc.Message{ - Tags: echoTags, - Prefix: &irc.Prefix{Name: uc.nick}, + Tags: echoTags, + Prefix: &irc.Prefix{ + Name: uc.nick, + User: uc.username, + Host: uc.hostname, + }, Command: msg.Command, Params: echoParams, }