ensure each target sees distinct msgids

This commit is contained in:
Shivaram Lingamneni 2019-03-19 05:51:33 -04:00
parent 18a8b075ea
commit 42dca34c1f
1 changed files with 4 additions and 3 deletions

View File

@ -1903,10 +1903,11 @@ func messageHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *R
return false
}
for i, targetString := range targets {
// each target gets distinct msgids
splitMsg := utils.MakeSplitMessage(message, !client.capabilities.Has(caps.MaxLine))
now := time.Now().UTC()
for i, targetString := range targets {
// max of four targets per privmsg
if i > maxTargets-1 {
break