1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-09-06 00:43:20 +00:00

Update README and example client once more.

This commit is contained in:
Alex Bramley 2011-11-09 22:06:54 +00:00
parent 8239bc4b6e
commit 80d8cd4ea7
2 changed files with 8 additions and 5 deletions

View file

@ -16,7 +16,8 @@ func main() {
flag.Parse()
// create new IRC connection
c := irc.New("GoTest", "gotest", "GoBot", true, nil, nil)
c := irc.SimpleClient("GoTest", "gotest")
c.EnableStateTracking()
c.AddHandler("connected",
func(conn *irc.Conn, line *irc.Line) { conn.Join(*channel) })