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

Enable SSL IRC for goirc.

This commit is contained in:
Alex Bramley 2010-08-30 12:16:20 +01:00
parent c4d09cd228
commit 05e3500a3c
2 changed files with 29 additions and 11 deletions

View file

@ -15,7 +15,7 @@ func main() {
func(conn *irc.Conn, line *irc.Line) { conn.Join("#go-nuts") })
// connect to server
if err := c.Connect("irc.freenode.net", ""); err != nil {
if err := c.Connect("irc.freenode.net", false); err != nil {
fmt.Printf("Connection error: %s\n", err)
return
}
@ -82,7 +82,7 @@ func main() {
break
}
fmt.Println("Reconnecting...")
if err := c.Connect("irc.freenode.net", ""); err != nil {
if err := c.Connect("irc.freenode.net", false); err != nil {
fmt.Printf("Connection error: %s\n", err)
break
}