3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-26 13:59:44 +01:00

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

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