Skip to content

Commit

Permalink
Support +channel-context
Browse files Browse the repository at this point in the history
  • Loading branch information
delthas committed Apr 28, 2022
1 parent 6866df0 commit f963090
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions irc/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f963090

Please sign in to comment.