mirror of https://github.com/fluffle/goirc
Don't commit my client.go
This commit is contained in:
parent
99fe1b3624
commit
f792080a07
|
@ -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) })
|
||||||
|
|
Loading…
Reference in New Issue