3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 10:42:52 +01:00

Add relayed messages to channel history

This commit is contained in:
Daniel Oaks 2020-06-08 15:22:41 +10:00
parent 4ecd7fdf43
commit efd3152bfb

View File

@ -2327,7 +2327,11 @@ func relaymsgHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *
return false
}
//TODO: add to history here??
channel.AddHistoryItem(history.Item{
Type: history.Privmsg,
Message: message,
Nick: nick,
}, "")
// send msg
for _, member := range channel.Members() {