diff options
author | delthas <delthas@dille.cc> | 2022-04-28 19:58:30 +0200 |
---|---|---|
committer | delthas <delthas@dille.cc> | 2022-04-28 19:58:30 +0200 |
commit | f9630908b727f96c3b051b6e5a19d9641f15b891 (patch) | |
tree | 5bd7252addef7de427d733d39cfec2709edc01db | |
parent | Handle IRC read events correctly (diff) |
Support +channel-context
See: https://github.com/ircv3/ircv3-specifications/pull/498
-rw-r--r-- | irc/session.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/irc/session.go b/irc/session.go index dbdf40a..10da468 100644 --- a/irc/session.go +++ b/irc/session.go @@ -1402,6 +1402,11 @@ func (s *Session) newMessageEvent(msg Message) (ev MessageEvent, err error) { Time: msg.TimeOrNow(), } + if s.IsMe(target) { + if context := msg.Tags["+draft/channel-context"]; context != "" { + target = context + } + } targetCf := s.Casemap(target) if c, ok := s.channels[targetCf]; ok { ev.Target = c.Name |