From 1d82af0080f0309754ec0b5bfa3cf6b5cc57eb4f Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Sat, 30 Jul 2011 19:34:55 +0100 Subject: [PATCH] Impolite to break the 'IRC event provides Conn, Line' contract. --- client/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/connection.go b/client/connection.go index f01b474..90b783f 100644 --- a/client/connection.go +++ b/client/connection.go @@ -266,7 +266,7 @@ func (conn *Conn) shutdown() { conn.sock.Close() conn.cSend <- true conn.cLoop <- true - conn.Dispatcher.Dispatch("disconnected", conn, nil) + conn.Dispatcher.Dispatch("disconnected", conn, &Line{}) // reinit datastructures ready for next connection // do this here rather than after runLoop()'s for due to race conn.initialise()