diff options
author | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-24 12:23:46 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-24 15:20:20 +0200 |
commit | 9421ec8dad54e38b721dcc3c7a5219bf3fbeb65d (patch) | |
tree | 7ed586c14b6c8b5b696ea44bd1329b6f174d91cf /irc | |
parent | Fix multiple SelfJoinEvent being sent (diff) |
Improve query display
- Print outgoing messages as "-> target" instead of self nick
- Don't highlight messages
Diffstat (limited to 'irc')
-rw-r--r-- | irc/events.go | 1 | ||||
-rw-r--r-- | irc/states.go | 1 |
2 files changed, 2 insertions, 0 deletions
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, |