From 90a5268dfa34f56fce6f772e584c7ea586265174 Mon Sep 17 00:00:00 2001 From: raylu Date: Fri, 15 Oct 2010 18:11:14 -0400 Subject: [PATCH] Properly export Debug and add Network to Conn --- irc/connection.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/irc/connection.go b/irc/connection.go index 663e5b0..16f33a2 100644 --- a/irc/connection.go +++ b/irc/connection.go @@ -17,6 +17,7 @@ type Conn struct { // Connection Hostname and Nickname Host string Me *Nick + Network string // I/O stuff to server sock net.Conn @@ -34,7 +35,7 @@ type Conn struct { // Set this to true to disable flood protection and false to re-enable Flood bool - debug bool + Debug bool // Event handler mapping events map[string][]func(*Conn, *Line) @@ -167,7 +168,7 @@ func (conn *Conn) send() { break } conn.io.Flush() - if conn.debug { + if conn.Debug { fmt.Println("-> " + line) } } @@ -184,7 +185,7 @@ func (conn *Conn) recv() { } // chop off \r\n s = s[0 : len(s)-2] - if conn.debug { + if conn.Debug { fmt.Println("<- " + s) }