# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1360466444 -3600
# Node ID 963d156a4b36087e54420bf4f650768ee8428bd6
# Parent  f657ed8f464eb950241aca415943de0181595fd1
verse: Really pass the connection to ondisconnect, not some unknown global

diff -r f657ed8f464e -r 963d156a4b36 init.lua
--- a/init.lua	Sun Feb 10 03:41:45 2013 +0100
+++ b/init.lua	Sun Feb 10 04:20:44 2013 +0100
@@ -150,7 +150,7 @@
 	end
 	local on_disconnect = self.conn.disconnect();
 	self.conn:close();
-	on_disconnect(conn, reason);
+	on_disconnect(self.conn, reason);
 end
 
 -- Logging functions