Send peers the IRC listener user's QUIT reason (closes #216)
check / check (push) Canceled after 0s

handleQuit now records the reason on the connection, and cleanup
passes it to BroadcastQuit, the same service call the HTTP API's
QUIT uses. A QUIT without a reason still gives Client quit. A
connection that ends without a QUIT still gives Connection closed.

The relay test that expected Connection closed for a bare QUIT now
expects Client quit.

Model: opus-5-5
This commit was merged in pull request #239.
This commit is contained in:
2026-11-02 05:02:33 +01:00
parent 6a7989e08d
commit e7ae675155
4 changed files with 126 additions and 12 deletions
+1
View File
@@ -371,6 +371,7 @@ func (c *Conn) handleQuit(msg *Message) {
c.mu.Lock()
c.closed = true
c.quitReason = reason
c.mu.Unlock()
}