Remove irc client from session when the connection dies
This commit is contained in:
parent
b687c13baa
commit
65b3aac977
@ -15,6 +15,7 @@ func handleMessages(irc *IRC, session *Session) {
|
||||
for {
|
||||
msg, ok := <-irc.Messages
|
||||
if !ok {
|
||||
session.deleteIRC(irc.Host)
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user