mirror of
https://github.com/jeremyd/ergo.git
synced 2026-08-12 08:33:05 -07:00
Store tags for messages using draft/relaymsg in history
This commit is contained in:
+7
-6
@@ -3534,12 +3534,6 @@ func relaymsgHandler(server *Server, client *Client, msg ircmsg.Message, rb *Res
|
||||
}
|
||||
nuh := fmt.Sprintf("%s!%s@%s", nick, ident, hostname)
|
||||
|
||||
channel.AddHistoryItem(history.Item{
|
||||
Type: history.Privmsg,
|
||||
Message: message,
|
||||
Nick: nuh,
|
||||
}, "")
|
||||
|
||||
// 3 possibilities for tags:
|
||||
// no tags, the relaymsg tag only, or the relaymsg tag together with all client-only tags
|
||||
relayTag := map[string]string{
|
||||
@@ -3557,6 +3551,13 @@ func relaymsgHandler(server *Server, client *Client, msg ircmsg.Message, rb *Res
|
||||
}
|
||||
}
|
||||
|
||||
channel.AddHistoryItem(history.Item{
|
||||
Type: history.Privmsg,
|
||||
Message: message,
|
||||
Nick: nuh,
|
||||
Tags: fullTags,
|
||||
}, "")
|
||||
|
||||
// actually send the message
|
||||
channelName := channel.Name()
|
||||
for _, member := range channel.Members() {
|
||||
|
||||
Reference in New Issue
Block a user