From 9421ec8dad54e38b721dcc3c7a5219bf3fbeb65d Mon Sep 17 00:00:00 2001 From: Hubert Hirtz Date: Mon, 24 Aug 2020 12:23:46 +0200 Subject: Improve query display - Print outgoing messages as "-> target" instead of self nick - Don't highlight messages --- irc/events.go | 1 + irc/states.go | 1 + 2 files changed, 2 insertions(+) (limited to 'irc') diff --git a/irc/events.go b/irc/events.go index e28c3e4..cd26369 100644 --- a/irc/events.go +++ b/irc/events.go @@ -48,6 +48,7 @@ type UserPartEvent struct { type QueryMessageEvent struct { Nick string + Target string Command string Content string Time time.Time diff --git a/irc/states.go b/irc/states.go index 365224e..61d06a4 100644 --- a/irc/states.go +++ b/irc/states.go @@ -847,6 +847,7 @@ func (s *Session) privmsgToEvent(msg Message) (ev Event) { // PRIVMSG to self ev = QueryMessageEvent{ Nick: nick, + Target: msg.Params[0], Command: msg.Command, Content: msg.Params[1], Time: t, -- cgit v1.2.3