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

correct syntax errors from updating go to 4450:dd9bae5c7eac

This commit is contained in:
Alex Bramley 2009-12-17 21:14:01 +00:00
parent 7191dd9177
commit 6a8c1a13b2
3 changed files with 6 additions and 6 deletions

View file

@ -13,12 +13,12 @@ func main() {
c := irc.New("GoTest", "gotest", "GoBot");
c.AddHandler("connected",
func(conn *irc.Conn, line *irc.Line) {
conn.Join("#");
conn.Join("#go-lang");
}
);
// connect to server
if err := c.Connect("irc.pl0rt.org", ""); err != nil {
if err := c.Connect("irc.freenode.net", ""); err != nil {
fmt.Printf("Connection error: %s\n", err);
return;
}
@ -77,7 +77,7 @@ func main() {
// if we don't really want to quit, reconnect!
if !reallyquit {
fmt.Println("Reconnecting...");
if err := c.Connect("irc.pl0rt.org", ""); err != nil {
if err := c.Connect("irc.freenode.net", ""); err != nil {
fmt.Printf("Connection error: %s\n", err);
break;
}