mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
ensure each target sees distinct msgids
This commit is contained in:
parent
18a8b075ea
commit
42dca34c1f
@ -1903,10 +1903,11 @@ func messageHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *R
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for i, targetString := range targets {
|
||||||
|
// each target gets distinct msgids
|
||||||
splitMsg := utils.MakeSplitMessage(message, !client.capabilities.Has(caps.MaxLine))
|
splitMsg := utils.MakeSplitMessage(message, !client.capabilities.Has(caps.MaxLine))
|
||||||
now := time.Now().UTC()
|
now := time.Now().UTC()
|
||||||
|
|
||||||
for i, targetString := range targets {
|
|
||||||
// max of four targets per privmsg
|
// max of four targets per privmsg
|
||||||
if i > maxTargets-1 {
|
if i > maxTargets-1 {
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user