From 077ff6d4c5b2aaa4162a17760f63c29b334c42b4 Mon Sep 17 00:00:00 2001 From: Benny Morrison Date: Sun, 17 Mar 2019 02:21:20 -0400 Subject: fixed some comments --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 8372dec..c9a6309 100644 --- a/main.go +++ b/main.go @@ -13,13 +13,15 @@ import ( "github.com/lrstanley/girc" ) +// function to grease error checking func checkerr(err error) { if err != nil { panic(err) } } -//right now Conf.Pass isn't used, but i'm leaving it so the bot +//Conf ... right now Conf.Pass isn't used, +//but i'm leaving it so the bot //can have a registered nick type Conf struct { Owner string @@ -126,7 +128,7 @@ func main() { } }) - // if err is not nothing, eg, if there's an error + // die if there's a connection error if err := client.Connect(); err != nil { log.Fatalf("an error occurred while attempting to connect to %s: %s", client.Server(), err) } -- cgit 1.4.1-2-gfad0