kunt

golang IRC bot
git clone git://git.2f30.org/kunt
Log | Files | Refs | LICENSE

commit 02b8e9e33f7f12fe5887d639a296e8a01a12f71d
parent b2ce41e51754270477ea10b16dc7e97e69ef466e
Author: dsp <dsp@2f30.org>
Date:   Tue, 29 Apr 2014 16:56:28 +0100

gofmt pass

Diffstat:
Msrc/kunt/kunt.go | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/kunt/kunt.go b/src/kunt/kunt.go @@ -361,24 +361,24 @@ func fifoCmdParse() { case "urlupdate": updateUrlDbTitles("db/urls-new") default: - log.Printf("Unknown fifo command:%s\n",string(buf)) + log.Printf("Unknown fifo command:%s\n", string(buf)) } } } } func updateUrlDbTitles(path string) { - log.Printf("*** starting urlDb update under path %s ***\n",path) + log.Printf("*** starting urlDb update under path %s ***\n", path) newurlPlain := mapfs.NewPlainMap() _, err := os.Stat(path) if err == nil { - log.Printf(" [updateUrlDbTitles] for the db to be updated, please provide a non-existant directory to be populated. %s exists\n",path) + log.Printf(" [updateUrlDbTitles] for the db to be updated, please provide a non-existant directory to be populated. %s exists\n", path) return } newurlDb := mapfs.NewMapfs(newurlPlain, "Urls", path, "url") - err = newurlDb.Load() + err = newurlDb.Load() if err != nil { - log.Printf("error on loading new urlDb: %s\n",err.Error()) + log.Printf("error on loading new urlDb: %s\n", err.Error()) return } iter := mapfs.MakeMapIter(urlDb) @@ -481,7 +481,7 @@ func main() { rand.Seed(time.Now().UnixNano()) dispatch := map[string]func(irc.Message){ - botname: cmdKunt, + botname: cmdKunt, "!wisdom": cmdWisdom, "!help": cmdHelp, "!version": cmdVersion,