diff options
author | delthas <delthas@dille.cc> | 2022-12-16 11:46:02 +0100 |
---|---|---|
committer | delthas <delthas@dille.cc> | 2022-12-16 11:46:02 +0100 |
commit | 7b9b1fc36a2f869e3eb203e8eb49a7767b86330a (patch) | |
tree | a007a7f719a03f888c59959717379cc2dc28c2f5 | |
parent | doc: Fix trivial typo (diff) |
Fix processing CHATHISTORY TAGMSG as standalone messages
Receiving a TAGMSG in chathistory causes the handler to return nil.
Previously this caused the handler to be called again without the
playblack flag, causing us to emit events out of their history context.
This meant we would show typing notifications for users from chathistory
batches.
Soju will soon be able to send TAGMSG messages in its chathistory, so
we're fixing that now.
-rw-r--r-- | irc/session.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/irc/session.go b/irc/session.go index 04942ae..0e0d6ba 100644 --- a/irc/session.go +++ b/irc/session.go @@ -655,8 +655,8 @@ func (s *Session) handleRegistered(msg Message) (Event, error) { Target: b.Target, Messages: append(b.Messages, ev), } - return nil, nil } + return nil, nil } } return s.handleMessageRegistered(msg, false) |