diff options
author | delthas <delthas@dille.cc> | 2021-07-13 19:26:24 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-07-13 21:38:53 +0200 |
commit | 93005741f2fa5c16bed3d7bc325c7d09a6a507da (patch) | |
tree | 2373fbf66cc6987ab7f3c6f1a1f4b0238fea9049 /app.go | |
parent | Clear the input on CTRL+C instead of quitting (diff) |
Switch to the buffer of a new user-requested channel join
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -511,10 +511,13 @@ func (app *App) handleIRCEvent(ev interface{}) { }) } case irc.SelfJoinEvent: - app.win.AddBuffer(ev.Channel) + i := app.win.AddBuffer(ev.Channel) app.s.NewHistoryRequest(ev.Channel). WithLimit(200). Before(msg.TimeOrNow()) + if ev.Requested { + app.win.JumpBufferIndex(i) + } case irc.UserJoinEvent: body := new(ui.StyledStringBuilder) body.Grow(len(ev.User) + 1) |