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

Review fix

This commit is contained in:
Daniel Oaks 2020-06-08 15:25:59 +10:00
parent efd3152bfb
commit 4535c82fd3

View File

@ -2336,9 +2336,11 @@ func relaymsgHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *
// send msg
for _, member := range channel.Members() {
for _, session := range member.Sessions() {
tagsToUse := make(map[string]string)
var tagsToUse map[string]string
if session.capabilities.Has(caps.Relaymsg) {
tagsToUse["relaymsg"] = client.Nick()
tagsToUse = map[string]string{
"relaymsg": client.Nick(),
}
}
session.sendSplitMsgFromClientInternal(false, nick, "", tagsToUse, "PRIVMSG", channel.Name(), message)