From e44f4b2eeef74c1c70704a049fcfc937f2925574 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 15 Nov 2021 23:53:25 +0100 Subject: [PATCH] Don't send user in prefix for echo messages This is not very useful and confuses clients. --- downstream.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/downstream.go b/downstream.go index 39ecd6e..649fc66 100644 --- a/downstream.go +++ b/downstream.go @@ -2181,11 +2181,8 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error { echoTags["account"] = irc.TagValue(uc.account) } echoMsg := &irc.Message{ - Tags: echoTags, - Prefix: &irc.Prefix{ - Name: uc.nick, - User: uc.username, - }, + Tags: echoTags, + Prefix: &irc.Prefix{Name: uc.nick}, Command: msg.Command, Params: []string{upstreamName, text}, }