detect QUIT as well as PART
This commit is contained in:
parent
9b1bf9c252
commit
09945be4ac
4
main.go
4
main.go
@ -158,6 +158,10 @@ func (m model) Init() tea.Cmd {
|
|||||||
delete(m.users, e.Nick())
|
delete(m.users, e.Nick())
|
||||||
})
|
})
|
||||||
|
|
||||||
|
m.conn.AddCallback("QUIT", func(e ircmsg.Message) {
|
||||||
|
delete(m.users, e.Nick())
|
||||||
|
})
|
||||||
|
|
||||||
m.conn.Join(m.channel)
|
m.conn.Join(m.channel)
|
||||||
|
|
||||||
return tea.Batch(tick())
|
return tea.Batch(tick())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user