mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 20:09:41 +01:00
Review fix
This commit is contained in:
parent
efd3152bfb
commit
4535c82fd3
@ -2336,9 +2336,11 @@ func relaymsgHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *
|
|||||||
// send msg
|
// send msg
|
||||||
for _, member := range channel.Members() {
|
for _, member := range channel.Members() {
|
||||||
for _, session := range member.Sessions() {
|
for _, session := range member.Sessions() {
|
||||||
tagsToUse := make(map[string]string)
|
var tagsToUse map[string]string
|
||||||
if session.capabilities.Has(caps.Relaymsg) {
|
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)
|
session.sendSplitMsgFromClientInternal(false, nick, "", tagsToUse, "PRIVMSG", channel.Name(), message)
|
||||||
|
Loading…
Reference in New Issue
Block a user