mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-11 06:29:29 +01:00
Merge pull request #1470 from slingamn/issue1468_relaymsg_tag
fix #1468
This commit is contained in:
commit
5342ab1bb1
@ -58,6 +58,8 @@ const (
|
||||
// More draft names associated with draft/multiline:
|
||||
MultilineBatchType = "draft/multiline"
|
||||
MultilineConcatTag = "draft/multiline-concat"
|
||||
// draft/relaymsg:
|
||||
RelaymsgTagName = "draft/relaymsg"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -2587,7 +2587,10 @@ func relaymsgHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *
|
||||
// send msg
|
||||
channelName := channel.Name()
|
||||
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 _, session := range member.Sessions() {
|
||||
|
2
irctest
2
irctest
@ -1 +1 @@
|
||||
Subproject commit 307722fbecc5ab69ee3246153b8f8f91ad830830
|
||||
Subproject commit b58fe44b5b36e9bf07af9b5a0033455524e2b456
|
Loading…
Reference in New Issue
Block a user