From e69f3a36b533f1a9e6e09e75250404b0aff44a1b Mon Sep 17 00:00:00 2001 From: Jokler Date: Thu, 11 Jun 2026 01:04:16 +0200 Subject: [PATCH] Store tags for messages using draft/relaymsg in history --- irc/handlers.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/irc/handlers.go b/irc/handlers.go index 1ca439fc..bcfe693a 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -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() {