Don't commit my client.go

This commit is contained in:
Chris Rhodes 2013-02-17 19:10:38 -08:00
parent 99fe1b3624
commit f792080a07
1 changed files with 2 additions and 5 deletions

View File

@ -11,17 +11,14 @@ import (
"strings" "strings"
) )
var host *string = flag.String("host", "irc.synirc.net", "IRC server") var host *string = flag.String("host", "irc.freenode.net", "IRC server")
var channel *string = flag.String("channel", "#go-nuts", "IRC channel") var channel *string = flag.String("channel", "#go-nuts", "IRC channel")
var nick *string = flag.String("nick", "Septapus", "Nick")
var ident *string = flag.String("ident", "Septapus", "Ident")
var name *string = flag.String("name", "Septapus v9", "Name")
func main() { func main() {
flag.Parse() flag.Parse()
// create new IRC connection // create new IRC connection
c := irc.SimpleClient(*nick, *ident, *name) c := irc.SimpleClient("GoTest", "gotest")
c.EnableStateTracking() c.EnableStateTracking()
c.HandleFunc(irc.CONNECTED, c.HandleFunc(irc.CONNECTED,
func(conn *irc.Conn, line *irc.Line) { conn.Join(*channel) }) func(conn *irc.Conn, line *irc.Line) { conn.Join(*channel) })