3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-14 07:59:31 +01:00
This commit is contained in:
Shivaram Lingamneni 2020-12-21 21:59:46 -05:00
parent 5c64612455
commit 514a2e613f
2 changed files with 6 additions and 1 deletions

View File

@ -58,6 +58,8 @@ const (
// More draft names associated with draft/multiline: // More draft names associated with draft/multiline:
MultilineBatchType = "draft/multiline" MultilineBatchType = "draft/multiline"
MultilineConcatTag = "draft/multiline-concat" MultilineConcatTag = "draft/multiline-concat"
// draft/relaymsg:
RelaymsgTagName = "draft/relaymsg"
) )
func init() { func init() {

View File

@ -2587,7 +2587,10 @@ func relaymsgHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *
// send msg // send msg
channelName := channel.Name() channelName := channel.Name()
relayTags := map[string]string{ relayTags := map[string]string{
"relaymsg": client.Nick(), caps.RelaymsgTagName: client.Nick(),
}
for t, v := range msg.ClientOnlyTags() {
relayTags[t] = v
} }
for _, member := range channel.Members() { for _, member := range channel.Members() {
for _, session := range member.Sessions() { for _, session := range member.Sessions() {