Fix echo-message for TAGMSG
A previous fix (d4b7bb02da1c) only fixed sending echo-message for TAGMSG to self. We also need to send echo-message for TAGMSG to other targets. Closes: https://todo.sr.ht/~emersion/soju/111 git-svn-id: file:///srv/svn/repo/suika/trunk@780 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
parent
71a0ed4052
commit
81e4b057c5
@ -2434,6 +2434,19 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc.
|
||||
Params: []string{upstreamName},
|
||||
})
|
||||
|
||||
echoTags := tags.Copy()
|
||||
echoTags["time"] = irc.TagValue(time.Now().UTC().Format(serverTimeLayout))
|
||||
if uc.account != "" {
|
||||
echoTags["account"] = irc.TagValue(uc.account)
|
||||
}
|
||||
echoMsg := &irc.Message{
|
||||
Tags: echoTags,
|
||||
Prefix: &irc.Prefix{Name: uc.nick},
|
||||
Command: "TAGMSG",
|
||||
Params: []string{upstreamName},
|
||||
}
|
||||
uc.produce(upstreamName, echoMsg, dc)
|
||||
|
||||
uc.updateChannelAutoDetach(upstreamName)
|
||||
}
|
||||
case "INVITE":
|
||||
|
Loading…
x
Reference in New Issue
Block a user