Merge pull request #13 from cgtdk/patch-1

Pull two commits from cgtdk fixing embarassing errors in my README ;-)
This commit is contained in:
Alex Bramley 2012-07-26 15:59:57 -07:00
commit 64899b4919
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ Synopsis:
func(conn *irc.Conn, line *irc.Line) { conn.Join("#channel") }) func(conn *irc.Conn, line *irc.Line) { conn.Join("#channel") })
// And a signal on disconnect // And a signal on disconnect
quit := make(chan bool) quit := make(chan bool)
c.AddHandler("disconnected), c.AddHandler("disconnected",
func(conn *irc.Conn, line *irc.Line) { quit <- true } func(conn *irc.Conn, line *irc.Line) { quit <- true })
// Tell client to connect // Tell client to connect
if err := c.Connect("irc.freenode.net"); err != nil { if err := c.Connect("irc.freenode.net"); err != nil {