diff options
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, |