From 419dba1e7512495a07f9111ce08aa68203909883 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Wed, 3 Nov 2010 23:53:14 +0000 Subject: [PATCH] Update example client with changes. --- client.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index 289971d..b747d29 100644 --- a/client.go +++ b/client.go @@ -11,11 +11,12 @@ import ( func main() { // create new IRC connection c := irc.New("GoTest", "gotest", "GoBot") + c.Debug = true c.AddHandler("connected", func(conn *irc.Conn, line *irc.Line) { conn.Join("#go-nuts") }) // connect to server - if err := c.Connect("irc.freenode.net", false); err != nil { + if err := c.Connect("irc.freenode.net"); err != nil { fmt.Printf("Connection error: %s\n", err) return } @@ -82,7 +83,7 @@ func main() { break } fmt.Println("Reconnecting...") - if err := c.Connect("irc.freenode.net", false); err != nil { + if err := c.Connect("irc.freenode.net"); err != nil { fmt.Printf("Connection error: %s\n", err) break }