detect QUIT as well as PART

This commit is contained in:
aoife cassidy 2025-11-01 21:20:55 +01:00
parent 9b1bf9c252
commit 09945be4ac
No known key found for this signature in database
GPG Key ID: 7184AC1C9835CE48

View File

@ -158,6 +158,10 @@ func (m model) Init() tea.Cmd {
delete(m.users, e.Nick())
})
m.conn.AddCallback("QUIT", func(e ircmsg.Message) {
delete(m.users, e.Nick())
})
m.conn.Join(m.channel)
return tea.Batch(tick())