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:
parent
8239bc4b6e
commit
80d8cd4ea7
2 changed files with 8 additions and 5 deletions
|
@ -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) })
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue